BetaPublic beta — Read the release notes
Documentation

Attachment

File attachment display with preview, name, and size.

Package
@solidiom/attachment
Version
0.6.0
Status
experimental

Generated from the package's public source.

API

AttachmentFileinterface

Props

name
string
size
number
type
string
url?
string

View source

AttachmentIconPropsinterface

Props

class?
string

children: Element

View source

AttachmentNamePropsinterface

Props

class?
string

children: Element

View source

AttachmentPreviewPropsinterface

Props

class?
string
style?
string | CSSProperties

children: Element

View source

AttachmentRemovePropsinterface

Props

class?
string

children: Element

View source

AttachmentRootPropsinterface

Props

class?
string
file?
AttachmentFile — File metadata to display.
onRemove?
() => void — Called when the remove button is clicked.

children: Element

View source

AttachmentSizePropsinterface

Props

class?
string

children: Element

View source

Iconcomponent

                        Icon(props: AttachmentIconProps): Element
                      

Props

class?
string

children: Element

View source

Namecomponent

                        Name(props: AttachmentNameProps): Element
                      

Props

class?
string

children: Element

View source

Previewcomponent

                        Preview(props: AttachmentPreviewProps): Element
                      

Props

class?
string
style?
string | CSSProperties

children: Element

View source

Removecomponent

                        Remove(props: AttachmentRemoveProps): Element
                      

Props

class?
string

children: Element

View source

Rootcomponent

                        Root(props: AttachmentRootProps): Element
                      

Props

class?
string
file?
AttachmentFile — File metadata to display.
onRemove?
() => void — Called when the remove button is clicked.

children: Element

View source

Sizecomponent

                        Size(props: AttachmentSizeProps): Element
                      

Props

class?
string

children: Element

View source