API Reference
Rockets React API
react-material-ui
type-aliases
SideModalProps

Type Alias: SideModalProps

SideModalProps: object

SideModal component props.

Type declaration

NameTypeDescription
anchorDrawerProps["anchor"]Side of the screen from which the drawer will appear ("left"
backgroundColorstringBackground color of the drawer
childrenReactNodeContent to display inside the drawer
closeIconColorstringColor of the close icon
headerBackgroundColorstringBackground color of the header
openbooleanWhether the drawer is open
sxSxProps<Theme>Custom styles to apply to the drawer
textPropsTextPropsProps to pass to the Text component
titlestringOptional title text to display in the header
toggleDrawer() => voidFunction to toggle the drawer open/close state
widthstring | numberWidth of the drawer

Defined in

packages/react-material-ui/src/components/SideModal/SideModal.tsx:14 (opens in a new tab)