How to use the react-md.Drawer.DrawerTypes function in react-md

To help you get started, we’ve selected a few react-md examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github GeorgioWan / oCongrats / src / components / DrawerMenu.js View on Github external
<div id="rc-drawer-footer">
                        Copyright © 2017 <span></span> <b>OAwan</b>
                    </div>
                } key={key++}/&gt;);
        }
            
        return (
            <div id="rc-drawer">
                <button></button>
                
                
                1. 貼文中找到<span>貼文時間</span></div>,
                        <div>2. 點擊<span>右鍵</span></div>,
                        <div>3. <span>複製連結網址</span>即可得到文章連結</div>
                    ]}
                    image={HOW}
                    closeDialog={this.closeDialog.bind(this)}/&gt;
github mlaursen / react-md / old / docs / src / components / Components / Drawers / RoutingExample / RoutingExample.jsx View on Github external
Drawer examples} /&gt;}
          renderNode={this.dialog}
          navItems={navItems.map(props =&gt; )}
        /&gt;
      
    );
  }
}
github xyfir / accownt / web / components / app / Navigation.jsx View on Github external
autoclose={true}
          navItems={navItems}
          visible={this.state.drawer}
          header={
             this.setState({ drawer: false })}
                  iconChildren="arrow_back"
                /&gt;
              }
            /&gt;
          }
          type={Drawer.DrawerTypes.TEMPORARY}
        /&gt;
      
    );
  }
}
github mlaursen / react-md / old / docs / src / components / Components / Drawers / SimpleDrawer.jsx View on Github external
render() {
    const { visible, position } = this.state;
    const isLeft = position === 'left';

    const closeBtn = <button>{isLeft ? 'arrow_back' : 'close'}</button>;
    return (
      <div>
        <button>
          Open Drawer Left
        </button>
        <button>
          Open Drawer Right
        </button>
        
          )}
        /&gt;
      </div>
    );
  }
}
github mlaursen / react-md / old / docs / src / components / Components / Drawers / DrawerWithContent / PhotoDrawer.jsx View on Github external
const PhotoDrawer = ({ visible, onVisibilityChange, photo }) =&gt; (
  
     onVisibilityChange(false)}&gt;close}
      title={photo.filename}
      actions={actions}
      prominentTitle
    /&gt;
    <section>
      
        <img role="presentation" src="{`https://unsplash.it/360/520/?image=${photo.id}`}"></section>