BetaPublic beta — Read the release notes
Documentation

Sheet

Side-panel dialog with slide animation.

Package
@solidiom/sheet
Version
0.0.1-next.0
Status
stable

Generated from the package's public source.

API

Backdropcomponent

                        Backdrop(props: SheetBackdropProps): Element
                      

Props

class?
string
style?
string | CSSProperties

View source

Closecomponent

                        Close(props: SheetCloseProps): Element
                      

Props

ref?
(el: HTMLButtonElement) => void

children: Element

View source

Contentcomponent

                        Content(props: SheetContentProps): Element
                      

Props

class?
string
ref?
(el: HTMLDivElement) => void
style?
string | CSSProperties
trapFocus?
boolean — Disable focus trapping. Default: true (trapping enabled).

children: Element

View source

Descriptioncomponent

                        Description(props: SheetDescriptionProps): Element
                      

Props

class?
string

children: Element

View source

Portalcomponent

                        Portal(props: SheetPortalProps): Element
                      

children: Element

View source

Rootcomponent

                        Root(props: SheetRootProps): Element
                      

Props

class?
string
defaultOpen?
boolean — Default open state (uncontrolled).
onOpenChange?
(open: boolean, details: ChangeDetails<DisclosureReason>) => void — Called when open state change is requested.
open?
Accessor<boolean> — Controlled open state.
side?
SheetSide — Which side the sheet slides in from. Default: "right".

children: Element

View source

SheetBackdropPropsinterface

Props

class?
string
style?
string | CSSProperties

View source

SheetClosePropsinterface

Props

ref?
(el: HTMLButtonElement) => void

children: Element

View source

SheetContentPropsinterface

Props

class?
string
ref?
(el: HTMLDivElement) => void
style?
string | CSSProperties
trapFocus?
boolean — Disable focus trapping. Default: true (trapping enabled).

children: Element

View source

SheetDescriptionPropsinterface

Props

class?
string

children: Element

View source

SheetPortalPropsinterface

children: Element

View source

SheetRootPropsinterface

Props

class?
string
defaultOpen?
boolean — Default open state (uncontrolled).
onOpenChange?
(open: boolean, details: ChangeDetails<DisclosureReason>) => void — Called when open state change is requested.
open?
Accessor<boolean> — Controlled open state.
side?
SheetSide — Which side the sheet slides in from. Default: "right".

children: Element

View source

SheetTitlePropsinterface

Props

class?
string

children: Element

View source

SheetTriggerPropsinterface

Props

ref?
(el: HTMLButtonElement) => void

children: Element

View source

Titlecomponent

                        Title(props: SheetTitleProps): Element
                      

Props

class?
string

children: Element

View source

Triggercomponent

                        Trigger(props: SheetTriggerProps): Element
                      

Props

ref?
(el: HTMLButtonElement) => void

children: Element

View source