Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (35 sloc) 1.05 KB

Dialog

See the demo component here

Usage

Below, an example of using Dialog, DialogActions, and DialogContent components:

import { Dialog, DialogActions, DialogContent } from 'mdwrapper';

const Demo = () => (
  <Dialog>
    Demo
    <DialogContent>
      Hello World
    </DialogContent>
    <DialogActions>
      <Button classes={['mdc-dialog__button']}>
        Done
      </Button>
    </DialogActions>
  </Dialog>
);

Props

List of all properties for the Dialog component:

Prop Type Default Description
children object - Node Content
open boolean false Title
title string 'Default' Title

List of all properties for the DialogActions component:

Prop Type Default Description
children object - Node Content

List of all properties for the DialogContent component:

Prop Type Default Description
children object - Node Content
You can’t perform that action at this time.