BetaPublic beta — Read the release notes
Documentation

Alert Dialog

Modal confirmation dialog requiring explicit user action.

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

Generated from the package's public source.

API

Actioncomponent

                        Action(props: AlertDialogActionProps): Element
                      

Props

onAction?
() => void — Called after the dialog requests close from the action button.
ref?
(el: HTMLButtonElement) => void

children: Element

View source

AlertDialogActionPropsinterface

Props

onAction?
() => void — Called after the dialog requests close from the action button.
ref?
(el: HTMLButtonElement) => void

children: Element

View source

AlertDialogCancelPropsinterface

Props

ref?
(el: HTMLButtonElement) => void

children: Element

View source

AlertDialogContentPropsinterface

Props

class?
string
ref?
(el: HTMLDivElement) => void
style?
string | CSSProperties

children: Element

View source

AlertDialogDescriptionPropsinterface

Props

class?
string

children: Element

View source

AlertDialogPortalPropsinterface

children: Element

View source

AlertDialogRootPropsinterface

Props

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.

children: Element

View source

AlertDialogTitlePropsinterface

Props

class?
string

children: Element

View source

AlertDialogTriggerPropsinterface

Props

ref?
(el: HTMLButtonElement) => void

children: Element

View source

Cancelcomponent

                        Cancel(props: AlertDialogCancelProps): Element
                      

Props

ref?
(el: HTMLButtonElement) => void

children: Element

View source

Contentcomponent

                        Content(props: AlertDialogContentProps): Element
                      

Props

class?
string
ref?
(el: HTMLDivElement) => void
style?
string | CSSProperties

children: Element

View source

Descriptioncomponent

                        Description(props: AlertDialogDescriptionProps): Element
                      

Props

class?
string

children: Element

View source

Portalcomponent

                        Portal(props: AlertDialogPortalProps): Element
                      

children: Element

View source

Rootcomponent

                        Root(props: AlertDialogRootProps): Element
                      

Props

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.

children: Element

View source

Titlecomponent

                        Title(props: AlertDialogTitleProps): Element
                      

Props

class?
string

children: Element

View source

Triggercomponent

                        Trigger(props: AlertDialogTriggerProps): Element
                      

Props

ref?
(el: HTMLButtonElement) => void

children: Element

View source