{ "componentDescription": "The navigation drawers (or \"sidebars\") provide ergonomic access to destinations in a site or app functionality such as switching accounts.", "propDescriptions": { "anchor": { "description": "Side from which the drawer will appear." }, "color": { "description": "The color of the component. It supports those theme colors that make sense for this component." }, "component": { "description": "The component used for the root node. Either a string to use a HTML element or a component." }, "container": { "description": "An HTML element or function that returns one. The container will have the portal children appended to it.
You can also provide a callback, which is called in a React layout effect. This lets you set the container from a ref, and also makes server-side rendering possible.
By default, it uses the body of the top-level document object, so it's simply document.body most of the time." }, "disableAutoFocus": { "description": "If true, the modal will not automatically shift focus to itself when it opens, and replace it to the last focused element when it closes. This also works correctly with any modal children that have the disableAutoFocus prop.
Generally this should never be set to true as it makes the modal less accessible to assistive technologies, like screen readers." }, "disableEnforceFocus": { "description": "If true, the modal will not prevent focus from leaving the modal while open.
Generally this should never be set to true as it makes the modal less accessible to assistive technologies, like screen readers." }, "disableEscapeKeyDown": { "description": "If true, hitting escape will not fire the onClose callback." }, "disablePortal": { "description": "The children will be under the DOM hierarchy of the parent component." }, "disableRestoreFocus": { "description": "If true, the modal will not restore focus to previously focused element once modal is hidden or unmounted." }, "disableScrollLock": { "description": "Disable the scroll lock behavior." }, "hideBackdrop": { "description": "If true, the backdrop is not rendered." }, "invertedColors": { "description": "If true, the children with an implicit color prop invert their colors to match the component's variant and color." }, "onClose": { "description": "Callback fired when the component requests to be closed. The reason parameter can optionally be used to control the response to onClose.", "typeDescriptions": { "event": { "name": "event", "description": "The event source of the callback." }, "reason": { "name": "reason", "description": "Can be: "escapeKeyDown", "backdropClick", "closeClick"." } } }, "open": { "description": "If true, the component is shown." }, "size": { "description": "The size of the component." }, "slotProps": { "description": "The props used for each slot inside." }, "slots": { "description": "The components used for each slot inside." }, "variant": { "description": "The global variant to use." } }, "classDescriptions": { "colorContext": { "description": "Class name applied to {{nodeName}} when {{conditions}}.", "nodeName": "the root element", "conditions": "color inversion is triggered" }, "colorDanger": { "description": "Class name applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "color=\"danger\"" }, "colorNeutral": { "description": "Class name applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "color=\"neutral\"" }, "colorPrimary": { "description": "Class name applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "color=\"primary\"" }, "colorSuccess": { "description": "Class name applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "color=\"success\"" }, "colorWarning": { "description": "Class name applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "color=\"warning\"" }, "hidden": { "description": "Class name applied to {{nodeName}} when {{conditions}}.", "nodeName": "the root element", "conditions": "open is false" }, "sizeLg": { "description": "Class name applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "size=\"lg\"" }, "sizeMd": { "description": "Class name applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "size=\"md\"" }, "sizeSm": { "description": "Class name applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "size=\"sm\"" }, "variantOutlined": { "description": "Class name applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "variant=\"outlined\"" }, "variantPlain": { "description": "Class name applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "variant=\"plain\"" }, "variantSoft": { "description": "Class name applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "variant=\"soft\"" }, "variantSolid": { "description": "Class name applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "variant=\"solid\"" } }, "slotDescriptions": { "backdrop": "The component that renders the backdrop.", "content": "The component that renders the content of the drawer.", "root": "The component that renders the root." } }