{ "props": { "action": { "type": { "name": "union", "description": "func
| { current?: { focusVisible: func } }" } }, "color": { "type": { "name": "union", "description": "'danger'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" }, "default": "'neutral'", "additionalInfo": { "joy-color": true } }, "component": { "type": { "name": "elementType" } }, "disabled": { "type": { "name": "bool" }, "default": "false" }, "focusVisibleClassName": { "type": { "name": "string" } }, "loading": { "type": { "name": "bool" }, "default": "false" }, "loadingIndicator": { "type": { "name": "node" }, "default": "" }, "size": { "type": { "name": "union", "description": "'sm'
| 'md'
| 'lg'
| string" }, "default": "'md'", "additionalInfo": { "joy-size": true } }, "slotProps": { "type": { "name": "shape", "description": "{ loadingIndicator?: func
| object, root?: func
| object }" }, "default": "{}" }, "slots": { "type": { "name": "shape", "description": "{ loadingIndicator?: elementType, root?: elementType }" }, "default": "{}", "additionalInfo": { "slotsApi": true } }, "sx": { "type": { "name": "union", "description": "Array<func
| object
| bool>
| func
| object" }, "additionalInfo": { "sx": true } }, "variant": { "type": { "name": "union", "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" }, "default": "'plain'", "additionalInfo": { "joy-variant": true } } }, "name": "IconButton", "imports": [ "import IconButton from '@mui/joy/IconButton';", "import { IconButton } from '@mui/joy';" ], "slots": [ { "name": "root", "description": "The component that renders the root.", "default": "'button'", "class": "MuiIconButton-root" }, { "name": "loadingIndicator", "description": "The component that renders the loading indicator.", "default": "'span'", "class": "MuiIconButton-loadingIndicator" } ], "classes": [ { "key": "colorContext", "className": "MuiIconButton-colorContext", "description": "Class name applied to the root element when color inversion is triggered.", "isGlobal": false }, { "key": "colorDanger", "className": "MuiIconButton-colorDanger", "description": "Class name applied to the root element if `color=\"danger\"`.", "isGlobal": false }, { "key": "colorNeutral", "className": "MuiIconButton-colorNeutral", "description": "Class name applied to the root element if `color=\"neutral\"`.", "isGlobal": false }, { "key": "colorPrimary", "className": "MuiIconButton-colorPrimary", "description": "Class name applied to the root element if `color=\"primary\"`.", "isGlobal": false }, { "key": "colorSuccess", "className": "MuiIconButton-colorSuccess", "description": "Class name applied to the root element if `color=\"success\"`.", "isGlobal": false }, { "key": "colorWarning", "className": "MuiIconButton-colorWarning", "description": "Class name applied to the root element if `color=\"warning\"`.", "isGlobal": false }, { "key": "disabled", "className": "Mui-disabled", "description": "State class applied to the root element if `disabled={true}`.", "isGlobal": true }, { "key": "focusVisible", "className": "Mui-focusVisible", "description": "State class applied to the root element if the button is keyboard focused.", "isGlobal": true }, { "key": "loading", "className": "MuiIconButton-loading", "description": "Class name applied to the root element if `loading={true}`.", "isGlobal": false }, { "key": "sizeLg", "className": "MuiIconButton-sizeLg", "description": "Class name applied to the root element if `size=\"lg\"`.", "isGlobal": false }, { "key": "sizeMd", "className": "MuiIconButton-sizeMd", "description": "Class name applied to the root element if `size=\"md\"`.", "isGlobal": false }, { "key": "sizeSm", "className": "MuiIconButton-sizeSm", "description": "Class name applied to the root element if `size=\"sm\"`.", "isGlobal": false }, { "key": "variantOutlined", "className": "MuiIconButton-variantOutlined", "description": "Class name applied to the root element if `variant=\"outlined\"`.", "isGlobal": false }, { "key": "variantPlain", "className": "MuiIconButton-variantPlain", "description": "Class name applied to the root element if `variant=\"plain\"`.", "isGlobal": false }, { "key": "variantSoft", "className": "MuiIconButton-variantSoft", "description": "Class name applied to the root element if `variant=\"soft\"`.", "isGlobal": false }, { "key": "variantSolid", "className": "MuiIconButton-variantSolid", "description": "Class name applied to the root element if `variant=\"solid\"`.", "isGlobal": false } ], "spread": false, "themeDefaultProps": true, "muiName": "JoyIconButton", "forwardsRefTo": "HTMLButtonElement", "filename": "/packages/mui-joy/src/IconButton/IconButton.tsx", "inheritance": null, "demos": "", "cssComponent": false }