{ "props": { "open": { "type": { "name": "bool" }, "required": true }, "anchorOrigin": { "type": { "name": "shape", "description": "{ horizontal: 'center'
| 'left'
| 'right', vertical: 'bottom'
| 'top' }" }, "default": "{ vertical: 'bottom', horizontal: 'right' }" }, "animationDuration": { "type": { "name": "number" }, "default": "300" }, "autoHideDuration": { "type": { "name": "number" }, "default": "null" }, "color": { "type": { "name": "enum", "description": "'danger'
| 'neutral'
| 'primary'
| 'success'
| 'warning'" }, "default": "'neutral'", "additionalInfo": { "joy-color": true } }, "component": { "type": { "name": "elementType" } }, "disableWindowBlurListener": { "type": { "name": "bool" }, "default": "false" }, "endDecorator": { "type": { "name": "node" } }, "invertedColors": { "type": { "name": "bool" }, "default": "false" }, "key": { "type": { "name": "custom", "description": "any" } }, "onClose": { "type": { "name": "func" }, "signature": { "type": "function(event: React.SyntheticEvent | Event, reason: string) => void", "describedArgs": ["event", "reason"] } }, "onUnmount": { "type": { "name": "func" } }, "resumeHideDuration": { "type": { "name": "number" } }, "size": { "type": { "name": "enum", "description": "'sm'
| 'md'
| 'lg'" }, "default": "'md'", "additionalInfo": { "joy-size": true } }, "slotProps": { "type": { "name": "shape", "description": "{ clickAway?: func
| { children: element, disableReactTree?: bool, mouseEvent?: 'onClick'
| 'onMouseDown'
| 'onMouseUp'
| 'onPointerDown'
| 'onPointerUp'
| false, onClickAway: func, touchEvent?: 'onTouchEnd'
| 'onTouchStart'
| false }, endDecorator?: func
| object, root?: func
| object, startDecorator?: func
| object }" }, "default": "{}" }, "slots": { "type": { "name": "shape", "description": "{ clickAway?: elementType, endDecorator?: elementType, root?: elementType, startDecorator?: elementType }" }, "default": "{}", "additionalInfo": { "slotsApi": true } }, "startDecorator": { "type": { "name": "node" } }, "sx": { "type": { "name": "union", "description": "Array<func
| object
| bool>
| func
| object" }, "additionalInfo": { "sx": true } }, "variant": { "type": { "name": "enum", "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'" }, "default": "'outlined'", "additionalInfo": { "joy-variant": true } } }, "name": "Snackbar", "imports": ["import Snackbar from '@mui/joy/Snackbar';", "import { Snackbar } from '@mui/joy';"], "slots": [ { "name": "root", "description": "The component that renders the root.", "default": "'div'", "class": "MuiSnackbar-root" }, { "name": "startDecorator", "description": "The component that renders the start decorator.", "default": "'span'", "class": "MuiSnackbar-startDecorator" }, { "name": "endDecorator", "description": "The component that renders the end decorator.", "default": "'span'", "class": "MuiSnackbar-endDecorator" }, { "name": "clickAway", "description": "The component that renders the click away.", "default": "ClickAwayListener", "class": null } ], "classes": [ { "key": "anchorOriginBottomCenter", "className": "MuiSnackbar-anchorOriginBottomCenter", "description": "Styles applied to the root element if `anchorOrigin={{ 'bottom', 'center' }}`.", "isGlobal": false }, { "key": "anchorOriginBottomLeft", "className": "MuiSnackbar-anchorOriginBottomLeft", "description": "Styles applied to the root element if `anchorOrigin={{ 'bottom', 'left' }}`.", "isGlobal": false }, { "key": "anchorOriginBottomRight", "className": "MuiSnackbar-anchorOriginBottomRight", "description": "Styles applied to the root element if `anchorOrigin={{ 'bottom', 'right' }}`.", "isGlobal": false }, { "key": "anchorOriginTopCenter", "className": "MuiSnackbar-anchorOriginTopCenter", "description": "Styles applied to the root element if `anchorOrigin={{ 'top', 'center' }}`.", "isGlobal": false }, { "key": "anchorOriginTopLeft", "className": "MuiSnackbar-anchorOriginTopLeft", "description": "Styles applied to the root element if `anchorOrigin={{ 'top', 'left' }}`.", "isGlobal": false }, { "key": "anchorOriginTopRight", "className": "MuiSnackbar-anchorOriginTopRight", "description": "Styles applied to the root element if `anchorOrigin={{ 'top', 'right' }}`.", "isGlobal": false }, { "key": "colorDanger", "className": "MuiSnackbar-colorDanger", "description": "Class name applied to the root element if `color=\"danger\"`.", "isGlobal": false }, { "key": "colorNeutral", "className": "MuiSnackbar-colorNeutral", "description": "Class name applied to the root element if `color=\"neutral\"`.", "isGlobal": false }, { "key": "colorPrimary", "className": "MuiSnackbar-colorPrimary", "description": "Class name applied to the root element if `color=\"primary\"`.", "isGlobal": false }, { "key": "colorSuccess", "className": "MuiSnackbar-colorSuccess", "description": "Class name applied to the root element if `color=\"success\"`.", "isGlobal": false }, { "key": "colorWarning", "className": "MuiSnackbar-colorWarning", "description": "Class name applied to the root element if `color=\"warning\"`.", "isGlobal": false }, { "key": "sizeLg", "className": "MuiSnackbar-sizeLg", "description": "Class name applied to the root element if `size=\"lg\"`.", "isGlobal": false }, { "key": "sizeMd", "className": "MuiSnackbar-sizeMd", "description": "Class name applied to the root element if `size=\"md\"`.", "isGlobal": false }, { "key": "sizeSm", "className": "MuiSnackbar-sizeSm", "description": "Class name applied to the root element if `size=\"sm\"`.", "isGlobal": false }, { "key": "variantOutlined", "className": "MuiSnackbar-variantOutlined", "description": "Class name applied to the root element if `variant=\"outlined\"`.", "isGlobal": false }, { "key": "variantPlain", "className": "MuiSnackbar-variantPlain", "description": "Class name applied to the root element if `variant=\"plain\"`.", "isGlobal": false }, { "key": "variantSoft", "className": "MuiSnackbar-variantSoft", "description": "Class name applied to the root element if `variant=\"soft\"`.", "isGlobal": false }, { "key": "variantSolid", "className": "MuiSnackbar-variantSolid", "description": "Class name applied to the root element if `variant=\"solid\"`.", "isGlobal": false } ], "spread": false, "themeDefaultProps": true, "muiName": "JoySnackbar", "forwardsRefTo": "HTMLDivElement", "filename": "/packages/mui-joy/src/Snackbar/Snackbar.tsx", "inheritance": null, "demos": "", "cssComponent": false }