icon-button
v4.9.10arrow_drop_downIf given, uses a negative margin to counteract the padding on one side (this is often helpful for aligning the left or right side of the icon with content above or below, without ruining the border size and shape).
Refer to the Icons section of the documentation regarding the available icon options. Demos:
API:
- IconButton API
- inherits ButtonBase API
Refer to the Icons section of the documentation regarding the available icon options.
Name | Type | Description |
---|---|---|
children | custom | The icon element. |
classes (required) | object | Override or extend the styles applied to the component. See CSS API below for more details. |
className | string | |
color | 'default' | 'inherit' | 'primary' | 'secondary' | The color of the component. It supports those theme colors that make sense for this component. |
disabled | bool | If |
disableFocusRipple | bool | If |
disableRipple | bool | If |
edge | 'start' | 'end' | false | If given, uses a negative margin to counteract the padding on one side (this is often helpful for aligning the left or right side of the icon with content above or below, without ruining the border size and shape). |
size | 'small' | 'medium' | The size of the button.
|