IconButton
Icon buttons expose compact, icon-first actions with the same Material 3 shape, color, and size variants as the library component.
Action components convert title into the library tooltip. See Action Tooltips for the shared behavior and accessible-name fallback.
Anatomy
| Element | Part | Selector |
|---|---|---|
<component> | root | [data-scope="icon-button"][data-part="root"]LMBCopy |
<Icon> | iconconditional | [data-scope="icon-button"][data-part="icon"]LMBCopy |
Props
| Name | Description | Default | Control |
|---|---|---|---|
toggleableOptional | Whether the button is toggleable (like a checkbox). When true, the button must contain an input element of type checkbox or radio. boolean | undefined | undefined | |
colorOptional | The color style of the button. filledtonaloutlinedstandard | - | |
sizeOptional | The size of the button. smalllargeextra-smallmediumextra-large | - | |
shapeOptional | The shape of the button. roundedsquare | - | |
widthOptional | The width of the button. defaultnarrowwide | - | |
hrefOptional | The href attribute. If provided, the button will be rendered as an anchor element. string | undefined | - | |
iconOptional | Name of the icon. string | undefined | - | |
disabledOptional | Whether the button is disabled. boolean | undefined | undefined |
Events0
No events documented.
Slots1
| Name | Parameters | Description |
|---|---|---|
default | - | Default slot for the main content of the icon button. Receives `disabled` as a prop. |
Styling254
| Token | Description |
|---|---|
--md-icon-button-container-colorColorFallback var(--md-sys-color-primary) | Controls container color. |
--md-icon-button-container-heightLayoutFallback 2.5rem | Controls container height. |
--md-icon-button-container-shapeShapeFallback var(--md-icon-button-container-shape-round,var(--md-shape-action)) | Controls container shape. |
--md-icon-button-container-shape-roundShapeFallback var(--md-shape-action) | Controls container shape round. |
--md-icon-button-container-shape-squareShapeFallback var(--md-shape-action-square-small) | Controls container shape square. |
--md-icon-button-default-leading-spaceLayoutFallback 0.5rem | Controls default leading space. |
--md-icon-button-default-trailing-spaceLayoutFallback 0.5rem | Controls default trailing space. |
--md-icon-button-disabled-container-colorDisabledFallback var(--md-sys-color-on-surface) | Controls disabled container color. |
--md-icon-button-disabled-container-opacityDisabledFallback 0.1 | Controls disabled container opacity. |
--md-icon-button-disabled-icon-colorDisabledFallback var(--md-sys-color-on-surface) | Controls disabled icon color. |
--md-icon-button-disabled-icon-opacityDisabledFallback 0.38 | Controls disabled icon opacity. |
--md-icon-button-filled-container-colorColorFallback var(--md-sys-color-primary) | Controls filled container color. |
--md-icon-button-filled-disabled-container-colorDisabledFallback var(--md-sys-color-on-surface) | Controls filled disabled container color. |
--md-icon-button-filled-disabled-container-opacityDisabledFallback 0.1 | Controls filled disabled container opacity. |
--md-icon-button-filled-disabled-icon-colorDisabledFallback var(--md-sys-color-on-surface) | Controls filled disabled icon color. |
--md-icon-button-filled-disabled-icon-opacityDisabledFallback 0.38 | Controls filled disabled icon opacity. |
--md-icon-button-filled-focused-icon-colorFocusFallback var(--md-sys-color-on-primary) | Controls filled focused icon color. |
--md-icon-button-filled-focused-state-layer-colorFocusFallback var(--md-sys-color-on-primary) | Controls filled focused state layer color. |
--md-icon-button-filled-focused-state-layer-opacityFocusFallback var(--md-sys-state-focus-state-layer-opacity) | Controls filled focused state layer opacity. |
--md-icon-button-filled-hovered-icon-colorStateFallback var(--md-sys-color-on-primary) | Controls filled hovered icon color. |
--md-icon-button-filled-hovered-state-layer-colorStateFallback var(--md-sys-color-on-primary) | Controls filled hovered state layer color. |
--md-icon-button-filled-hovered-state-layer-opacityStateFallback var(--md-sys-state-hover-state-layer-opacity) | Controls filled hovered state layer opacity. |
--md-icon-button-filled-icon-colorColorFallback var(--md-sys-color-on-primary) | Controls filled icon color. |
--md-icon-button-filled-pressed-icon-colorStateFallback var(--md-sys-color-on-primary) | Controls filled pressed icon color. |
--md-icon-button-filled-pressed-state-layer-colorStateFallback var(--md-sys-color-on-primary) | Controls filled pressed state layer color. |
--md-icon-button-filled-pressed-state-layer-opacityStateFallback var(--md-sys-state-pressed-state-layer-opacity) | Controls filled pressed state layer opacity. |
--md-icon-button-filled-selected-container-colorStateFallback var(--md-sys-color-primary) | Controls filled selected container color. |
--md-icon-button-filled-selected-focused-icon-colorFocusFallback var(--md-sys-color-on-primary) | Controls filled selected focused icon color. |
--md-icon-button-filled-selected-focused-state-layer-colorFocusFallback var(--md-sys-color-on-primary) | Controls filled selected focused state layer color. |
--md-icon-button-filled-selected-hovered-icon-colorStateFallback var(--md-sys-color-on-primary) | Controls filled selected hovered icon color. |
--md-icon-button-filled-selected-hovered-state-layer-colorStateFallback var(--md-sys-color-on-primary) | Controls filled selected hovered state layer color. |
--md-icon-button-filled-selected-icon-colorStateFallback var(--md-sys-color-on-primary) | Controls filled selected icon color. |
--md-icon-button-filled-selected-pressed-icon-colorStateFallback var(--md-sys-color-on-primary) | Controls filled selected pressed icon color. |
--md-icon-button-filled-selected-pressed-state-layer-colorStateFallback var(--md-sys-color-on-primary) | Controls filled selected pressed state layer color. |
--md-icon-button-filled-unselected-container-colorStateFallback var(--md-sys-color-surface-container) | Controls filled unselected container color. |
--md-icon-button-filled-unselected-focused-icon-colorFocusFallback var(--md-sys-color-on-surface-variant) | Controls filled unselected focused icon color. |
--md-icon-button-filled-unselected-focused-state-layer-colorFocusFallback var(--md-sys-color-on-surface-variant) | Controls filled unselected focused state layer color. |
--md-icon-button-filled-unselected-hovered-icon-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls filled unselected hovered icon color. |
--md-icon-button-filled-unselected-hovered-state-layer-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls filled unselected hovered state layer color. |
--md-icon-button-filled-unselected-icon-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls filled unselected icon color. |
--md-icon-button-filled-unselected-pressed-icon-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls filled unselected pressed icon color. |
--md-icon-button-filled-unselected-pressed-state-layer-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls filled unselected pressed state layer color. |
--md-icon-button-focus-indicator-colorFocusFallback var(--md-sys-color-secondary) | Controls focus indicator color. |
--md-icon-button-focus-indicator-outline-offsetFocusFallback var(--md-sys-state-focus-indicator-outer-offset) | Controls focus indicator outline offset. |
--md-icon-button-focus-indicator-thicknessFocusFallback var(--md-sys-state-focus-indicator-thickness) | Controls focus indicator thickness. |
--md-icon-button-focused-icon-colorFocusFallback var(--md-sys-color-on-primary) | Controls focused icon color. |
--md-icon-button-focused-state-layer-colorFocusFallback var(--md-sys-color-on-primary) | Controls focused state layer color. |
--md-icon-button-focused-state-layer-opacityFocusFallback var(--md-sys-state-focus-state-layer-opacity) | Controls focused state layer opacity. |
--md-icon-button-hovered-icon-colorStateFallback var(--md-sys-color-on-primary) | Controls hovered icon color. |
--md-icon-button-hovered-state-layer-colorStateFallback var(--md-sys-color-on-primary) | Controls hovered state layer color. |
--md-icon-button-hovered-state-layer-opacityStateFallback var(--md-sys-state-hover-state-layer-opacity) | Controls hovered state layer opacity. |
--md-icon-button-icon-colorColorFallback var(--md-sys-color-on-primary) | Controls icon color. |
--md-icon-button-icon-sizeLayoutFallback 1.5rem | Controls icon size. |
--md-icon-button-large-container-heightLayoutFallback 6rem | Controls large container height. |
--md-icon-button-large-container-shape-roundShapeFallback var(--md-shape-action) | Controls large container shape round. |
--md-icon-button-large-container-shape-squareShapeFallback var(--md-shape-action-square-large) | Controls large container shape square. |
--md-icon-button-large-default-leading-spaceLayoutFallback 2rem | Controls large default leading space. |
--md-icon-button-large-default-trailing-spaceLayoutFallback 2rem | Controls large default trailing space. |
--md-icon-button-large-icon-sizeLayoutFallback 2rem | Controls large icon size. |
--md-icon-button-large-narrow-leading-spaceLayoutFallback 1rem | Controls large narrow leading space. |
--md-icon-button-large-narrow-trailing-spaceLayoutFallback 1rem | Controls large narrow trailing space. |
--md-icon-button-large-outlined-outline-widthLayoutFallback 0.125rem | Controls large outlined outline width. |
--md-icon-button-large-pressed-container-corner-size-motion-spring-dampingMotionFallback var(--md-sys-motion-spring-fast-spatial-damping) | Controls large pressed container corner size motion spring damping. |
--md-icon-button-large-pressed-container-corner-size-motion-spring-stiffnessMotionFallback var(--md-sys-motion-spring-fast-spatial-stiffness) | Controls large pressed container corner size motion spring stiffness. |
--md-icon-button-large-pressed-container-shapeShapeFallback var(--md-shape-action-pressed-large) | Controls large pressed container shape. |
--md-icon-button-large-selected-container-shape-roundShapeFallback var(--md-shape-action-selected-large) | Controls large selected container shape round. |
--md-icon-button-large-selected-container-shape-squareShapeFallback var(--md-shape-action) | Controls large selected container shape square. |
--md-icon-button-large-wide-leading-spaceLayoutFallback 3rem | Controls large wide leading space. |
--md-icon-button-large-wide-trailing-spaceLayoutFallback 3rem | Controls large wide trailing space. |
--md-icon-button-leading-spaceLayoutFallback var(--md-icon-button-default-leading-space,0.5rem) | Controls leading space. |
--md-icon-button-medium-container-heightLayoutFallback 3.5rem | Controls medium container height. |
--md-icon-button-medium-container-shape-roundShapeFallback var(--md-shape-action) | Controls medium container shape round. |
--md-icon-button-medium-container-shape-squareShapeFallback var(--md-shape-action-square-medium) | Controls medium container shape square. |
--md-icon-button-medium-default-leading-spaceLayoutFallback 1rem | Controls medium default leading space. |
--md-icon-button-medium-default-trailing-spaceLayoutFallback 1rem | Controls medium default trailing space. |
--md-icon-button-medium-icon-sizeLayoutFallback 1.5rem | Controls medium icon size. |
--md-icon-button-medium-narrow-leading-spaceLayoutFallback 0.75rem | Controls medium narrow leading space. |
--md-icon-button-medium-narrow-trailing-spaceLayoutFallback 0.75rem | Controls medium narrow trailing space. |
--md-icon-button-medium-outlined-outline-widthLayoutFallback 0.0625rem | Controls medium outlined outline width. |
--md-icon-button-medium-pressed-container-corner-size-motion-spring-dampingMotionFallback var(--md-sys-motion-spring-fast-spatial-damping) | Controls medium pressed container corner size motion spring damping. |
--md-icon-button-medium-pressed-container-corner-size-motion-spring-stiffnessMotionFallback var(--md-sys-motion-spring-fast-spatial-stiffness) | Controls medium pressed container corner size motion spring stiffness. |
--md-icon-button-medium-pressed-container-shapeShapeFallback var(--md-shape-action-pressed-medium) | Controls medium pressed container shape. |
--md-icon-button-medium-selected-container-shape-roundShapeFallback var(--md-shape-action-selected-medium) | Controls medium selected container shape round. |
--md-icon-button-medium-selected-container-shape-squareShapeFallback var(--md-shape-action) | Controls medium selected container shape square. |
--md-icon-button-medium-wide-leading-spaceLayoutFallback 1.5rem | Controls medium wide leading space. |
--md-icon-button-medium-wide-trailing-spaceLayoutFallback 1.5rem | Controls medium wide trailing space. |
--md-icon-button-narrow-leading-spaceLayoutFallback 0.25rem | Controls narrow leading space. |
--md-icon-button-narrow-trailing-spaceLayoutFallback 0.25rem | Controls narrow trailing space. |
--md-icon-button-outlined-disabled-icon-colorDisabledFallback var(--md-sys-color-on-surface) | Controls outlined disabled icon color. |
--md-icon-button-outlined-disabled-icon-opacityDisabledFallback 0.38 | Controls outlined disabled icon opacity. |
--md-icon-button-outlined-disabled-outline-colorDisabledFallback var(--md-sys-color-outline-variant) | Controls outlined disabled outline color. |
--md-icon-button-outlined-focused-icon-colorFocusFallback var(--md-sys-color-on-surface-variant) | Controls outlined focused icon color. |
--md-icon-button-outlined-focused-state-layer-colorFocusFallback var(--md-sys-color-on-surface-variant) | Controls outlined focused state layer color. |
--md-icon-button-outlined-focused-state-layer-opacityFocusFallback var(--md-sys-state-focus-state-layer-opacity) | Controls outlined focused state layer opacity. |
--md-icon-button-outlined-hovered-icon-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls outlined hovered icon color. |
--md-icon-button-outlined-hovered-state-layer-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls outlined hovered state layer color. |
--md-icon-button-outlined-hovered-state-layer-opacityStateFallback var(--md-sys-state-hover-state-layer-opacity) | Controls outlined hovered state layer opacity. |
--md-icon-button-outlined-icon-colorColorFallback var(--md-sys-color-on-surface-variant) | Controls outlined icon color. |
--md-icon-button-outlined-outline-colorColorFallback var(--md-sys-color-outline-variant) | Controls outlined outline color. |
--md-icon-button-outlined-pressed-icon-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls outlined pressed icon color. |
--md-icon-button-outlined-pressed-state-layer-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls outlined pressed state layer color. |
--md-icon-button-outlined-pressed-state-layer-opacityStateFallback var(--md-sys-state-pressed-state-layer-opacity) | Controls outlined pressed state layer opacity. |
--md-icon-button-outlined-selected-container-colorStateFallback var(--md-sys-color-inverse-surface) | Controls outlined selected container color. |
--md-icon-button-outlined-selected-disabled-container-colorDisabledFallback var(--md-sys-color-on-surface) | Controls outlined selected disabled container color. |
--md-icon-button-outlined-selected-disabled-container-opacityDisabledFallback 0.1 | Controls outlined selected disabled container opacity. |
--md-icon-button-outlined-selected-focused-icon-colorFocusFallback var(--md-sys-color-inverse-on-surface) | Controls outlined selected focused icon color. |
--md-icon-button-outlined-selected-focused-state-layer-colorFocusFallback var(--md-sys-color-inverse-on-surface) | Controls outlined selected focused state layer color. |
--md-icon-button-outlined-selected-hovered-icon-colorStateFallback var(--md-sys-color-inverse-on-surface) | Controls outlined selected hovered icon color. |
--md-icon-button-outlined-selected-hovered-state-layer-colorStateFallback var(--md-sys-color-inverse-on-surface) | Controls outlined selected hovered state layer color. |
--md-icon-button-outlined-selected-icon-colorStateFallback var(--md-sys-color-inverse-on-surface) | Controls outlined selected icon color. |
--md-icon-button-outlined-selected-pressed-icon-colorStateFallback var(--md-sys-color-inverse-on-surface) | Controls outlined selected pressed icon color. |
--md-icon-button-outlined-selected-pressed-state-layer-colorStateFallback var(--md-sys-color-inverse-on-surface) | Controls outlined selected pressed state layer color. |
--md-icon-button-outlined-unselected-disabled-outline-colorDisabledFallback var(--md-sys-color-outline-variant) | Controls outlined unselected disabled outline color. |
--md-icon-button-outlined-unselected-focused-icon-colorFocusFallback var(--md-sys-color-on-surface-variant) | Controls outlined unselected focused icon color. |
--md-icon-button-outlined-unselected-focused-state-layer-colorFocusFallback var(--md-sys-color-on-surface-variant) | Controls outlined unselected focused state layer color. |
--md-icon-button-outlined-unselected-hovered-icon-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls outlined unselected hovered icon color. |
--md-icon-button-outlined-unselected-hovered-state-layer-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls outlined unselected hovered state layer color. |
--md-icon-button-outlined-unselected-icon-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls outlined unselected icon color. |
--md-icon-button-outlined-unselected-outline-colorStateFallback var(--md-sys-color-outline-variant) | Controls outlined unselected outline color. |
--md-icon-button-outlined-unselected-pressed-icon-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls outlined unselected pressed icon color. |
--md-icon-button-outlined-unselected-pressed-state-layer-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls outlined unselected pressed state layer color. |
--md-icon-button-pressed-container-corner-size-motion-spring-dampingMotionFallback var(--md-sys-motion-spring-fast-spatial-damping) | Controls pressed container corner size motion spring damping. |
--md-icon-button-pressed-container-corner-size-motion-spring-stiffnessMotionFallback var(--md-sys-motion-spring-fast-spatial-stiffness) | Controls pressed container corner size motion spring stiffness. |
--md-icon-button-pressed-container-shapeShapeFallback var(--md-shape-action-pressed-small) | Controls pressed container shape. |
--md-icon-button-pressed-icon-colorStateFallback var(--md-sys-color-on-primary) | Controls pressed icon color. |
--md-icon-button-pressed-state-layer-colorStateFallback var(--md-sys-color-on-primary) | Controls pressed state layer color. |
--md-icon-button-pressed-state-layer-opacityStateFallback var(--md-sys-state-pressed-state-layer-opacity) | Controls pressed state layer opacity. |
--md-icon-button-selected-container-colorStateFallback var(--md-sys-color-primary) | Controls selected container color. |
--md-icon-button-selected-container-shapeShapeFallback var(--md-icon-button-xsmall-selected-container-shape-round,var(--md-shape-action-selected-small)) | Controls selected container shape. |
--md-icon-button-selected-container-shape-roundShapeFallback var(--md-shape-action-selected-small) | Controls selected container shape round. |
--md-icon-button-selected-container-shape-squareShapeFallback var(--md-shape-action) | Controls selected container shape square. |
--md-icon-button-selected-focused-icon-colorFocusFallback var(--md-sys-color-on-primary) | Controls selected focused icon color. |
--md-icon-button-selected-focused-state-layer-colorFocusFallback var(--md-sys-color-on-primary) | Controls selected focused state layer color. |
--md-icon-button-selected-hovered-icon-colorStateFallback var(--md-sys-color-on-primary) | Controls selected hovered icon color. |
--md-icon-button-selected-hovered-state-layer-colorStateFallback var(--md-sys-color-on-primary) | Controls selected hovered state layer color. |
--md-icon-button-selected-icon-colorStateFallback var(--md-sys-color-on-primary) | Controls selected icon color. |
--md-icon-button-selected-pressed-icon-colorStateFallback var(--md-sys-color-on-primary) | Controls selected pressed icon color. |
--md-icon-button-selected-pressed-state-layer-colorStateFallback var(--md-sys-color-on-primary) | Controls selected pressed state layer color. |
--md-icon-button-small-container-heightLayoutFallback 2.5rem | Controls small container height. |
--md-icon-button-small-container-shape-roundShapeFallback var(--md-shape-action) | Controls small container shape round. |
--md-icon-button-small-container-shape-squareShapeFallback var(--md-shape-action-square-small) | Controls small container shape square. |
--md-icon-button-small-default-leading-spaceLayoutFallback 0.5rem | Controls small default leading space. |
--md-icon-button-small-default-trailing-spaceLayoutFallback 0.5rem | Controls small default trailing space. |
--md-icon-button-small-icon-sizeLayoutFallback 1.5rem | Controls small icon size. |
--md-icon-button-small-narrow-leading-spaceLayoutFallback 0.25rem | Controls small narrow leading space. |
--md-icon-button-small-narrow-trailing-spaceLayoutFallback 0.25rem | Controls small narrow trailing space. |
--md-icon-button-small-outlined-outline-widthLayoutFallback 0.0625rem | Controls small outlined outline width. |
--md-icon-button-small-pressed-container-corner-size-motion-spring-dampingMotionFallback var(--md-sys-motion-spring-fast-spatial-damping) | Controls small pressed container corner size motion spring damping. |
--md-icon-button-small-pressed-container-corner-size-motion-spring-stiffnessMotionFallback var(--md-sys-motion-spring-fast-spatial-stiffness) | Controls small pressed container corner size motion spring stiffness. |
--md-icon-button-small-pressed-container-shapeShapeFallback var(--md-shape-action-pressed-small) | Controls small pressed container shape. |
--md-icon-button-small-selected-container-shape-roundShapeFallback var(--md-shape-action-selected-small) | Controls small selected container shape round. |
--md-icon-button-small-selected-container-shape-squareShapeFallback var(--md-shape-action) | Controls small selected container shape square. |
--md-icon-button-small-wide-leading-spaceLayoutFallback 0.875rem | Controls small wide leading space. |
--md-icon-button-small-wide-trailing-spaceLayoutFallback 0.875rem | Controls small wide trailing space. |
--md-icon-button-standard-disabled-icon-colorDisabledFallback var(--md-sys-color-on-surface) | Controls standard disabled icon color. |
--md-icon-button-standard-disabled-icon-opacityDisabledFallback 0.38 | Controls standard disabled icon opacity. |
--md-icon-button-standard-focused-icon-colorFocusFallback var(--md-sys-color-on-surface-variant) | Controls standard focused icon color. |
--md-icon-button-standard-focused-state-layer-colorFocusFallback var(--md-sys-color-on-surface-variant) | Controls standard focused state layer color. |
--md-icon-button-standard-focused-state-layer-opacityFocusFallback var(--md-sys-state-focus-state-layer-opacity) | Controls standard focused state layer opacity. |
--md-icon-button-standard-hovered-icon-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls standard hovered icon color. |
--md-icon-button-standard-hovered-state-layer-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls standard hovered state layer color. |
--md-icon-button-standard-hovered-state-layer-opacityStateFallback var(--md-sys-state-hover-state-layer-opacity) | Controls standard hovered state layer opacity. |
--md-icon-button-standard-icon-colorColorFallback var(--md-sys-color-on-surface-variant) | Controls standard icon color. |
--md-icon-button-standard-pressed-icon-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls standard pressed icon color. |
--md-icon-button-standard-pressed-state-layer-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls standard pressed state layer color. |
--md-icon-button-standard-pressed-state-layer-opacityStateFallback var(--md-sys-state-pressed-state-layer-opacity) | Controls standard pressed state layer opacity. |
--md-icon-button-standard-selected-focused-icon-colorFocusFallback var(--md-sys-color-primary) | Controls standard selected focused icon color. |
--md-icon-button-standard-selected-focused-state-layer-colorFocusFallback var(--md-sys-color-primary) | Controls standard selected focused state layer color. |
--md-icon-button-standard-selected-hovered-icon-colorStateFallback var(--md-sys-color-primary) | Controls standard selected hovered icon color. |
--md-icon-button-standard-selected-hovered-state-layer-colorStateFallback var(--md-sys-color-primary) | Controls standard selected hovered state layer color. |
--md-icon-button-standard-selected-icon-colorStateFallback var(--md-sys-color-primary) | Controls standard selected icon color. |
--md-icon-button-standard-selected-pressed-icon-colorStateFallback var(--md-sys-color-primary) | Controls standard selected pressed icon color. |
--md-icon-button-standard-selected-pressed-state-layer-colorStateFallback var(--md-sys-color-primary) | Controls standard selected pressed state layer color. |
--md-icon-button-standard-unselected-focused-icon-colorFocusFallback var(--md-sys-color-on-surface-variant) | Controls standard unselected focused icon color. |
--md-icon-button-standard-unselected-focused-state-layer-colorFocusFallback var(--md-sys-color-on-surface-variant) | Controls standard unselected focused state layer color. |
--md-icon-button-standard-unselected-hovered-icon-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls standard unselected hovered icon color. |
--md-icon-button-standard-unselected-hovered-state-layer-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls standard unselected hovered state layer color. |
--md-icon-button-standard-unselected-icon-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls standard unselected icon color. |
--md-icon-button-standard-unselected-pressed-icon-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls standard unselected pressed icon color. |
--md-icon-button-standard-unselected-pressed-state-layer-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls standard unselected pressed state layer color. |
--md-icon-button-tonal-container-colorColorFallback var(--md-sys-color-secondary-container) | Controls tonal container color. |
--md-icon-button-tonal-disabled-container-colorDisabledFallback var(--md-sys-color-on-surface) | Controls tonal disabled container color. |
--md-icon-button-tonal-disabled-container-opacityDisabledFallback 0.1 | Controls tonal disabled container opacity. |
--md-icon-button-tonal-disabled-icon-colorDisabledFallback var(--md-sys-color-on-surface) | Controls tonal disabled icon color. |
--md-icon-button-tonal-disabled-icon-opacityDisabledFallback 0.38 | Controls tonal disabled icon opacity. |
--md-icon-button-tonal-focused-icon-colorFocusFallback var(--md-sys-color-on-secondary-container) | Controls tonal focused icon color. |
--md-icon-button-tonal-focused-state-layer-colorFocusFallback var(--md-sys-color-on-secondary-container) | Controls tonal focused state layer color. |
--md-icon-button-tonal-focused-state-layer-opacityFocusFallback var(--md-sys-state-focus-state-layer-opacity) | Controls tonal focused state layer opacity. |
--md-icon-button-tonal-hovered-icon-colorStateFallback var(--md-sys-color-on-secondary-container) | Controls tonal hovered icon color. |
--md-icon-button-tonal-hovered-state-layer-colorStateFallback var(--md-sys-color-on-secondary-container) | Controls tonal hovered state layer color. |
--md-icon-button-tonal-hovered-state-layer-opacityStateFallback var(--md-sys-state-hover-state-layer-opacity) | Controls tonal hovered state layer opacity. |
--md-icon-button-tonal-icon-colorColorFallback var(--md-sys-color-on-secondary-container) | Controls tonal icon color. |
--md-icon-button-tonal-pressed-icon-colorStateFallback var(--md-sys-color-on-secondary-container) | Controls tonal pressed icon color. |
--md-icon-button-tonal-pressed-state-layer-colorStateFallback var(--md-sys-color-on-secondary-container) | Controls tonal pressed state layer color. |
--md-icon-button-tonal-pressed-state-layer-opacityStateFallback var(--md-sys-state-pressed-state-layer-opacity) | Controls tonal pressed state layer opacity. |
--md-icon-button-tonal-selected-container-colorStateFallback var(--md-sys-color-secondary) | Controls tonal selected container color. |
--md-icon-button-tonal-selected-focused-icon-colorFocusFallback var(--md-sys-color-on-secondary) | Controls tonal selected focused icon color. |
--md-icon-button-tonal-selected-focused-state-layer-colorFocusFallback var(--md-sys-color-on-secondary) | Controls tonal selected focused state layer color. |
--md-icon-button-tonal-selected-hovered-icon-colorStateFallback var(--md-sys-color-on-secondary) | Controls tonal selected hovered icon color. |
--md-icon-button-tonal-selected-hovered-state-layer-colorStateFallback var(--md-sys-color-on-secondary) | Controls tonal selected hovered state layer color. |
--md-icon-button-tonal-selected-icon-colorStateFallback var(--md-sys-color-on-secondary) | Controls tonal selected icon color. |
--md-icon-button-tonal-selected-pressed-icon-colorStateFallback var(--md-sys-color-on-secondary) | Controls tonal selected pressed icon color. |
--md-icon-button-tonal-selected-pressed-state-layer-colorStateFallback var(--md-sys-color-on-secondary) | Controls tonal selected pressed state layer color. |
--md-icon-button-tonal-unselected-container-colorStateFallback var(--md-sys-color-secondary-container) | Controls tonal unselected container color. |
--md-icon-button-tonal-unselected-focused-icon-colorFocusFallback var(--md-sys-color-on-secondary-container) | Controls tonal unselected focused icon color. |
--md-icon-button-tonal-unselected-focused-state-layer-colorFocusFallback var(--md-sys-color-on-secondary-container) | Controls tonal unselected focused state layer color. |
--md-icon-button-tonal-unselected-hovered-icon-colorStateFallback var(--md-sys-color-on-secondary-container) | Controls tonal unselected hovered icon color. |
--md-icon-button-tonal-unselected-hovered-state-layer-colorStateFallback var(--md-sys-color-on-secondary-container) | Controls tonal unselected hovered state layer color. |
--md-icon-button-tonal-unselected-icon-colorStateFallback var(--md-sys-color-on-secondary-container) | Controls tonal unselected icon color. |
--md-icon-button-tonal-unselected-pressed-icon-colorStateFallback var(--md-sys-color-on-secondary-container) | Controls tonal unselected pressed icon color. |
--md-icon-button-tonal-unselected-pressed-state-layer-colorStateFallback var(--md-sys-color-on-secondary-container) | Controls tonal unselected pressed state layer color. |
--md-icon-button-trailing-spaceLayoutFallback var(--md-icon-button-default-trailing-space,0.5rem) | Controls trailing space. |
--md-icon-button-unselected-container-colorStateFallback var(--md-sys-color-surface-container) | Controls unselected container color. |
--md-icon-button-unselected-focused-icon-colorFocusFallback var(--md-sys-color-on-surface-variant) | Controls unselected focused icon color. |
--md-icon-button-unselected-focused-state-layer-colorFocusFallback var(--md-sys-color-on-surface-variant) | Controls unselected focused state layer color. |
--md-icon-button-unselected-hovered-icon-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls unselected hovered icon color. |
--md-icon-button-unselected-hovered-state-layer-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls unselected hovered state layer color. |
--md-icon-button-unselected-icon-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls unselected icon color. |
--md-icon-button-unselected-pressed-icon-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls unselected pressed icon color. |
--md-icon-button-unselected-pressed-state-layer-colorStateFallback var(--md-sys-color-on-surface-variant) | Controls unselected pressed state layer color. |
--md-icon-button-wide-leading-spaceLayoutFallback 0.875rem | Controls wide leading space. |
--md-icon-button-wide-trailing-spaceLayoutFallback 0.875rem | Controls wide trailing space. |
--md-icon-button-xlarge-container-heightLayoutFallback 8.5rem | Controls xlarge container height. |
--md-icon-button-xlarge-container-shape-roundShapeFallback var(--md-shape-action) | Controls xlarge container shape round. |
--md-icon-button-xlarge-container-shape-squareShapeFallback var(--md-shape-action-square-large) | Controls xlarge container shape square. |
--md-icon-button-xlarge-default-leading-spaceLayoutFallback 3rem | Controls xlarge default leading space. |
--md-icon-button-xlarge-default-trailing-spaceLayoutFallback 3rem | Controls xlarge default trailing space. |
--md-icon-button-xlarge-icon-sizeLayoutFallback 2.5rem | Controls xlarge icon size. |
--md-icon-button-xlarge-narrow-leading-spaceLayoutFallback 2rem | Controls xlarge narrow leading space. |
--md-icon-button-xlarge-narrow-trailing-spaceLayoutFallback 2rem | Controls xlarge narrow trailing space. |
--md-icon-button-xlarge-outlined-outline-widthLayoutFallback 0.1875rem | Controls xlarge outlined outline width. |
--md-icon-button-xlarge-pressed-container-corner-size-motion-spring-dampingMotionFallback var(--md-sys-motion-spring-fast-spatial-damping) | Controls xlarge pressed container corner size motion spring damping. |
--md-icon-button-xlarge-pressed-container-corner-size-motion-spring-stiffnessMotionFallback var(--md-sys-motion-spring-fast-spatial-stiffness) | Controls xlarge pressed container corner size motion spring stiffness. |
--md-icon-button-xlarge-pressed-container-shapeShapeFallback var(--md-shape-action-pressed-large) | Controls xlarge pressed container shape. |
--md-icon-button-xlarge-selected-container-shape-roundShapeFallback var(--md-shape-action-selected-large) | Controls xlarge selected container shape round. |
--md-icon-button-xlarge-selected-container-shape-squareShapeFallback var(--md-shape-action) | Controls xlarge selected container shape square. |
--md-icon-button-xlarge-wide-leading-spaceLayoutFallback 4.5rem | Controls xlarge wide leading space. |
--md-icon-button-xlarge-wide-trailing-spaceLayoutFallback 4.5rem | Controls xlarge wide trailing space. |
--md-icon-button-xsmall-container-heightLayoutFallback 2rem | Controls xsmall container height. |
--md-icon-button-xsmall-container-shape-roundShapeFallback var(--md-shape-action) | Controls xsmall container shape round. |
--md-icon-button-xsmall-container-shape-squareShapeFallback var(--md-shape-action-square-small) | Controls xsmall container shape square. |
--md-icon-button-xsmall-default-leading-spaceLayoutFallback 0.375rem | Controls xsmall default leading space. |
--md-icon-button-xsmall-default-trailing-spaceLayoutFallback 0.375rem | Controls xsmall default trailing space. |
--md-icon-button-xsmall-icon-sizeLayoutFallback 1.25rem | Controls xsmall icon size. |
--md-icon-button-xsmall-narrow-leading-spaceLayoutFallback 0.25rem | Controls xsmall narrow leading space. |
--md-icon-button-xsmall-narrow-trailing-spaceLayoutFallback 0.25rem | Controls xsmall narrow trailing space. |
--md-icon-button-xsmall-outlined-outline-widthLayoutFallback 0.0625rem | Controls xsmall outlined outline width. |
--md-icon-button-xsmall-pressed-container-corner-size-motion-spring-dampingMotionFallback var(--md-sys-motion-spring-fast-spatial-damping) | Controls xsmall pressed container corner size motion spring damping. |
--md-icon-button-xsmall-pressed-container-corner-size-motion-spring-stiffnessMotionFallback var(--md-sys-motion-spring-fast-spatial-stiffness) | Controls xsmall pressed container corner size motion spring stiffness. |
--md-icon-button-xsmall-pressed-container-shapeShapeFallback var(--md-shape-action-pressed-small) | Controls xsmall pressed container shape. |
--md-icon-button-xsmall-selected-container-shape-roundShapeFallback var(--md-shape-action-selected-small) | Controls xsmall selected container shape round. |
--md-icon-button-xsmall-selected-container-shape-squareShapeFallback var(--md-shape-action) | Controls xsmall selected container shape square. |
--md-icon-button-xsmall-wide-leading-spaceLayoutFallback 0.625rem | Controls xsmall wide leading space. |
--md-icon-button-xsmall-wide-trailing-spaceLayoutFallback 0.625rem | Controls xsmall wide trailing space. |
Examples
Default
Colors
Sizes
Shapes
Widths
Disabled
Toggleable
Tooltip
Use title for a simple text tooltip.
Vue Router
Use the same RouterLink custom pattern as Button, then forward href and navigate to IconButton.