Attachment
File attachment display with preview, name, and size.
Generated from the package's public source.
API
AttachmentFileinterface
Props
namestringsizenumbertypestringurl?string
AttachmentIconPropsinterface
Props
class?string
children: Element
AttachmentNamePropsinterface
Props
class?string
children: Element
AttachmentPreviewPropsinterface
Props
class?stringstyle?string | CSSProperties
children: Element
AttachmentRemovePropsinterface
Props
class?string
children: Element
AttachmentRootPropsinterface
Props
class?stringfile?AttachmentFile— File metadata to display.onRemove?() => void— Called when the remove button is clicked.
children: Element
AttachmentSizePropsinterface
Props
class?string
children: Element
Iconcomponent
Icon(props: AttachmentIconProps): Element
Props
class?string
children: Element
Namecomponent
Name(props: AttachmentNameProps): Element
Props
class?string
children: Element
Previewcomponent
Preview(props: AttachmentPreviewProps): Element
Props
class?stringstyle?string | CSSProperties
children: Element
Removecomponent
Remove(props: AttachmentRemoveProps): Element
Props
class?string
children: Element
Rootcomponent
Root(props: AttachmentRootProps): Element
Props
class?stringfile?AttachmentFile— File metadata to display.onRemove?() => void— Called when the remove button is clicked.
children: Element
Sizecomponent
Size(props: AttachmentSizeProps): Element
Props
class?string
children: Element