Materialish

Radio Button

A Radio button represents one option among several choices.

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

Usage

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

Props

Prop NameDefault ValueDescription
classNameAdditional class name(s) to add to the Radio
styleInline styles to add to the root element of the Radio
nodeRefPass a ref to get access to the input node
...restOther props are placed on the underlying input element

CSS Variables

VariableDefault ValueDescription
--mt-baseFontSize--mt-baseFontSize, 1remThe size of the radio is based off of this value
--mt-radio-checkedColor--mt-mainColor, #2196f3The color of the radio when it is checked
--mt-radio-focusColor#e8e8e8The color of the focused circle layer

Useful Links