Dialog API
API documentation for Dialog component
DialogRoot#
Props#
Defines valid properties in Dialog component.
State#
Defines valid state in Dialog component.
| name | type | default | description |
|---|---|---|---|
| opened | boolean | null | Whether the dialog is currently opened. |
| maximized | boolean | null | Whether the dialog is currently maximized. |
Exposes#
Defines the methods and properties exposed by Dialog component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of Dialog component.
Types#
Instance
Instance of Dialog component.
| values |
|---|
| ComponentInstance<DialogRootProps, DialogRootState, DialogRootExposes> |
DialogTrigger#
Props#
Defines valid properties in DialogTrigger component.
Exposes#
Defines the methods and properties exposed by DialogTrigger component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of DialogTrigger component.
| name | type | default | description |
|---|---|---|---|
| root | DialogTriggerPassThroughType<HTMLAttributes<HTMLButtonElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of DialogTrigger component.
| values |
|---|
| ComponentInstance<DialogTriggerProps, DialogTriggerState, DialogTriggerExposes> |
DialogPortal#
Props#
Defines valid properties in DialogPortal component.
Exposes#
Defines the methods and properties exposed by DialogPortal component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of DialogPortal component.
| name | type | default | description |
|---|---|---|---|
| root | DialogPortalPassThroughType<HTMLAttributes<HTMLButtonElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of DialogPortal component.
| values |
|---|
| ComponentInstance<DialogPortalProps, DialogPortalState, DialogPortalExposes> |
DialogHeader#
Props#
Defines valid properties in DialogHeader component.
Exposes#
Defines the methods and properties exposed by DialogHeader component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of DialogHeader component.
| name | type | default | description |
|---|---|---|---|
| root | DialogHeaderPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of DialogHeader component.
| values |
|---|
| ComponentInstance<DialogHeaderProps, DialogHeaderState, DialogHeaderExposes> |
DialogTitle#
Props#
Defines valid properties in DialogTitle component.
Exposes#
Defines the methods and properties exposed by DialogTitle component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of DialogTitle component.
| name | type | default | description |
|---|---|---|---|
| root | DialogTitlePassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of DialogTitle component.
| values |
|---|
| ComponentInstance<DialogTitleProps, DialogTitleState, DialogTitleExposes> |
DialogHeaderActions#
Props#
Defines valid properties in DialogHeaderActions component.
Exposes#
Defines the methods and properties exposed by DialogHeaderActions component.
| name | type | default | description |
|---|---|---|---|
| dialog | DialogRootInstance | null | The dialog instance that the header actions belong to. |
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of DialogHeaderActions component.
| name | type | default | description |
|---|---|---|---|
| root | DialogHeaderActionsPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of DialogHeaderActions component.
| values |
|---|
| ComponentInstance<DialogHeaderActionsProps, DialogHeaderActionsState, DialogHeaderActionsExposes> |
DialogMaximizable#
Props#
Defines valid properties in DialogMaximizable component.
Exposes#
Defines the methods and properties exposed by DialogMaximizable component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of DialogMaximizable component.
| name | type | default | description |
|---|---|---|---|
| root | DialogMaximizablePassThroughType<HTMLAttributes<HTMLButtonElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of DialogMaximizable component.
| values |
|---|
| ComponentInstance<DialogMaximizableProps, DialogMaximizableState, DialogMaximizableExposes> |
DialogClose#
Props#
Defines valid properties in DialogClose component.
Exposes#
Defines the methods and properties exposed by DialogClose component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of DialogClose component.
| name | type | default | description |
|---|---|---|---|
| root | DialogClosePassThroughType<HTMLAttributes<HTMLButtonElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of DialogClose component.
| values |
|---|
| ComponentInstance<DialogCloseProps, DialogCloseState, DialogCloseExposes> |
DialogContent#
Props#
Defines valid properties in DialogContent component.
Exposes#
Defines the methods and properties exposed by DialogContent component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of DialogContent component.
| name | type | default | description |
|---|---|---|---|
| root | DialogContentPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of DialogContent component.
| values |
|---|
| ComponentInstance<DialogContentProps, DialogContentState, DialogContentExposes> |
DialogFooter#
Props#
Defines valid properties in DialogFooter component.
Exposes#
Defines the methods and properties exposed by DialogFooter component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of DialogFooter component.
| name | type | default | description |
|---|---|---|---|
| root | DialogFooterPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of DialogFooter component.
| values |
|---|
| ComponentInstance<DialogFooterProps, DialogFooterState, DialogFooterExposes> |
useDialog#
Props#
Defines valid properties in useDialog.
State#
Defines valid state in useDialog.
| name | type | default | description |
|---|---|---|---|
| opened | boolean | null | Whether the dialog is currently opened. |
| maximized | boolean | null | Whether the dialog is currently maximized. |
Exposes#
Defines the methods and properties exposed by useDialog.
Events#
useDialogChangeEvent
Event fired when the dialog's open state changes.
Types#
Instance
Instance of useDialog headless.
| values |
|---|
| HeadlessInstance<useDialogProps, useDialogState, useDialogExposes> |