Materialish

Dialog

Dialogs inform users about a task or decision that needs to be made.

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

Usage

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

Take note of the fact that a dialog is made up of several components. To see how they are used together, refer to the example above.

Props

All of the components of a dialog receive the same props.

Prop NameDefault ValueDescription
classNameAdditional class name(s) to add to the dialog component
nodeRefPass a ref to get access to the root node
...restOther props are placed on the root element of the dialog component

CSS Variables

These CSS variables should be applied to the <Dialog/> component, and not the sub-components.

VariableDefault ValueDescription
--mt-baseFontSize1remThe text size of the dialog is based off of this value
--mt-fontFamily'Roboto'The font family to use for text

Useful Links