2.0.2 • Published 6 years ago
@materialr/dialog v2.0.2
MaterialR Dialog
@materialr/dialog
Material dialog implementation for React
Installation
$ npm install --save @materialr/dialog
Demo
A full demo is available on the MaterialR website showcasing all variants.
Components
Default export
import Dialog from '@materialr/dialog';
Props
Prop | Type | Required | Default | Description |
---|---|---|---|---|
body | string | Yes | N/A | The text to display inside the dialog |
className | string | No | undefined | Additional classNames to add |
labelAccept | string | Yes | N/A | The label for the accept button |
labelCancel | string | Yes | N/A | The label for the cancel button |
onAccept | func | Yes | N/A | The accept button handler |
onCancel | func | Yes | N/A | The cancel button handler |
secondaryAccept | bool | No | false | Whether to use the secondary style for the accept button |
secondaryCancel | bool | No | false | Whether to use the secondary style for the cancel button |
scrollable | bool | No | false | whether the body of the dialog has scrollable text |
title | string | Yes | N/A | The title of the dialog |