Materialish

Icon Button

An icon button represents that an action will occur when the user clicks or touches it.

🙌 Heads up! This code is editable. The preview above will update to reflect your changes.

Usage

import { IconButton } from 'materialish';
import 'materialish/materialish.css';

Props

Prop NameDefault ValueDescription
childrenThe contents that are rendered
classNameAdditional class name(s) to add to the Button
rippletrueWhether or not to display the "ripple" effect
nodeRefPass a ref to get access to the button element
...restOther props are placed on the underlying button element

CSS Variables

VariableDefault ValueDescription
--mt-baseFontSize1remThe dimensions of the button are based off of this value
--mt-iconButton-color#6d6c6cThe color to use for the icon and ripple
--mt-iconButton-disabledColorrgba(0, 0, 0, 0.38)The color to use when the button is disabled

Useful Links