@materialr/dialog

2.0.2 • Public • Published

MaterialR Dialog

@materialr/dialog

Build Status Coverage Status NSP Status semantic-release

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

Readme

Keywords

Package Sidebar

Install

npm i @materialr/dialog

Weekly Downloads

0

Version

2.0.2

License

MIT

Unpacked Size

14 kB

Total Files

4

Last publish

Collaborators

  • hvolschenk