Dialogs inform users about a task or decision that needs to be made.
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.
All of the components of a dialog receive the same props.
Prop Name | Default Value | Description |
---|---|---|
className | Additional class name(s) to add to the dialog component | |
nodeRef | Pass a ref to get access to the root node | |
...rest | Other props are placed on the root element of the dialog component |
These CSS variables should be applied to the <Dialog/>
component, and not the sub-components.
Variable | Default Value | Description |
---|---|---|
--mt-baseFontSize | 1rem | The text size of the dialog is based off of this value |
--mt-fontFamily | 'Roboto' | The font family to use for text |