Skip to main content

IconButton

Imports

import {IconButton} from 'material-expressive-react';
import {IconButton} from 'material-expressive-react/icon-button';

Props

PropTypeDefaultRequiredDescription
ariaLabelSelectedstringNo
buttonTypeenumNo
disabledbooleanNo
flipIconInRtlbooleanNo
hrefstringNo
namestringNo
onChange((event: Event) => void)No
onInput((event: InputEvent) => void)No
selectedbooleanNo
sizeenumNoSize (Figma).
softDisabledbooleanNoDisabled but still focusable.
targetenumNo
togglebooleanNo
typeenumNoShape type (Figma).
valuestringNo
variantenumfilledNoVisual variant (Figma).
widthenumNoWidth (Figma).

Events

This component does not explicitly re-emit DOM events via wrapper props.

Slots

Material Web components frequently use named slots. In React, you can pass slot="..." on children (e.g. <Icon slot="icon" />).

If you need to slot a child component that does not accept a slot prop, use the Slotted utility (see Utilities → Slotted).

Examples

See Storybook for live examples and variants.