@materialr/dialog

Material dialog implementation for React

Stats

StarsIssuesVersionUpdatedCreatedSize
@materialr/dialog
002.0.23 years ago4 years agoMinified + gzip package size for @materialr/dialog in KB

Readme

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.