Drawer API
API documentation for Drawer component
DrawerRoot#
Props#
Defines valid properties in Drawer component.
State#
Defines valid state in Drawer component.
Exposes#
Defines the methods and properties exposed by Drawer component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of Drawer component.
Types#
Instance
Instance of Drawer component.
| values |
|---|
| ComponentInstance<DrawerRootProps, DrawerRootState, DrawerRootExposes> |
DrawerTrigger#
Props#
Defines valid properties in DrawerTrigger component.
Exposes#
Defines the methods and properties exposed by DrawerTrigger component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of DrawerTrigger component.
| name | type | default | description |
|---|---|---|---|
| root | DrawerTriggerPassThroughType<HTMLAttributes<HTMLButtonElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of DrawerTrigger component.
| values |
|---|
| ComponentInstance<DrawerTriggerProps, DrawerTriggerState, DrawerTriggerExposes> |
DrawerBackdrop#
Props#
Defines valid properties in DrawerBackdrop component.
Exposes#
Defines the methods and properties exposed by DrawerBackdrop component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of DrawerBackdrop component.
| name | type | default | description |
|---|---|---|---|
| root | DrawerBackdropPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of DrawerBackdrop component.
| values |
|---|
| ComponentInstance<DrawerBackdropProps, DrawerBackdropState, DrawerBackdropExposes> |
DrawerPortal#
Props#
Defines valid properties in DrawerPortal component.
Exposes#
Defines the methods and properties exposed by DrawerPortal component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of DrawerPortal component.
| name | type | default | description |
|---|---|---|---|
| root | DrawerPortalPassThroughType<HTMLAttributes<HTMLButtonElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of DrawerPortal component.
| values |
|---|
| ComponentInstance<DrawerPortalProps, DrawerPortalState, DrawerPortalExposes> |
DrawerHeader#
Props#
Defines valid properties in DrawerHeader component.
Exposes#
Defines the methods and properties exposed by DrawerHeader component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of DrawerHeader component.
| name | type | default | description |
|---|---|---|---|
| root | DrawerHeaderPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of DrawerHeader component.
| values |
|---|
| ComponentInstance<DrawerHeaderProps, DrawerHeaderState, DrawerHeaderExposes> |
DrawerTitle#
Props#
Defines valid properties in DrawerTitle component.
Exposes#
Defines the methods and properties exposed by DrawerTitle component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of DrawerTitle component.
| name | type | default | description |
|---|---|---|---|
| root | DrawerTitlePassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of DrawerTitle component.
| values |
|---|
| ComponentInstance<DrawerTitleProps, DrawerTitleState, DrawerTitleExposes> |
DrawerClose#
Props#
Defines valid properties in DrawerClose component.
Exposes#
Defines the methods and properties exposed by DrawerClose component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of DrawerClose component.
| name | type | default | description |
|---|---|---|---|
| root | DrawerClosePassThroughType<HTMLAttributes<HTMLButtonElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of DrawerClose component.
| values |
|---|
| ComponentInstance<DrawerCloseProps, DrawerCloseState, DrawerCloseExposes> |
DrawerContent#
Props#
Defines valid properties in DrawerContent component.
Exposes#
Defines the methods and properties exposed by DrawerContent component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of DrawerContent component.
| name | type | default | description |
|---|---|---|---|
| root | DrawerContentPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of DrawerContent component.
| values |
|---|
| ComponentInstance<DrawerContentProps, DrawerContentState, DrawerContentExposes> |
DrawerFooter#
Props#
Defines valid properties in DrawerFooter component.
Exposes#
Defines the methods and properties exposed by DrawerFooter component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of DrawerFooter component.
| name | type | default | description |
|---|---|---|---|
| root | DrawerFooterPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of DrawerFooter component.
| values |
|---|
| ComponentInstance<DrawerFooterProps, DrawerFooterState, DrawerFooterExposes> |
useDrawer#
Props#
Defines valid properties in useDrawer.
State#
Defines valid state in useDrawer.
Exposes#
Defines the methods and properties exposed by useDrawer.
Events#
useDrawerChangeEvent
Event fired when the drawer's open state changes.
Types#
Instance
Instance of useDrawer headless.
| values |
|---|
| HeadlessInstance<useDrawerProps, useDrawerState, useDrawerExposes> |