playbook_ui_docs 14.9.0.pre.rc.17 → 14.9.0.pre.rc.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1c18d1dd4993034bb18536afb0c3a358b33b7f3e536e235a69c660367945f80
4
- data.tar.gz: 40efcd515c9269ac9556d934db38f18e3de648cfdb0c73167d1d38bdff6dc25e
3
+ metadata.gz: 1b5364dc42d3f5acfe91d5aa9a5928fa72749a6aa26e728f2e459bc3bf97b44a
4
+ data.tar.gz: 875fa9d0facc30a2a617aea1a7497be4c46bd44aabe8b717036c5ef70be36605
5
5
  SHA512:
6
- metadata.gz: f6ede530c9abab3382eebe9cf11830978f59ba0af0b6b1601c3550f4dca2661a1950ef7c15834491c8b570d28e16addc1c6a3890eed2496d38304e59fcd4dbd7
7
- data.tar.gz: 3c93375e203f7c1c70c693e24854fb047c9786a81d7b99327bf8d6ff6de0d7b4f2a765097e6258a31c3fdebbfbfc21b060ac2cf491224ced87a762c373b09aae
6
+ metadata.gz: 8606d46695824fec308cf98ad82eaa6830797aa3b4a9b9b42147e0c3d0caaba138ac6bb2d969a76350531bff2b6ba19d54aa7107cc4706cad8199f905ffefe1f
7
+ data.tar.gz: 1e51bc65fcb91372ff96d5d1e5c12c556359b5169f3dfd6829a86ce152487438764253f5417e989d63fd21190de30c85f49a9436d96e9f9e372719079ad684e5
@@ -0,0 +1,31 @@
1
+ import React from "react";
2
+ import { Button, Drawer, Icon, Title } from "playbook-ui";
3
+
4
+ const DrawerMenu = () => {
5
+
6
+ return (
7
+ <>
8
+ <Button id="menuButton"
9
+ padding="sm"
10
+ >
11
+ <Icon icon="bars"
12
+ size="3x"
13
+ />
14
+ </Button>
15
+ <Drawer
16
+ behavior="push"
17
+ closeBreakpoint="md"
18
+ menuButtonID="menuButton"
19
+ overlay={false}
20
+ placement="left"
21
+ size="lg"
22
+ withinElement
23
+ >
24
+ <Title paddingBottom="md">A really neat menu</Title>
25
+ <Button text="This Button does nothing" />
26
+ </Drawer>
27
+ </>
28
+ );
29
+ };
30
+
31
+ export default DrawerMenu;
@@ -0,0 +1,6 @@
1
+ Our drawer kit can fulfill your responsive menu needs! Using the `closeBreakpoint` prop you can have the menu close on smaller screens like phones/tablets.
2
+
3
+ Set a menu button with the `menuButtonID` props. When the Drawer is open, the menu button will be hidden. But when your Brakpoint closes the drawer, you can toggle the Drawer open/close with your menu butotn.
4
+
5
+ Also use the `withinElement` props to have the Drawer open within a specific element, instead of the default behavior of it taking up the entire screen size.
6
+
@@ -6,7 +6,7 @@ examples:
6
6
 
7
7
  react:
8
8
  - drawer_default: Default
9
+ - drawer_menu: Menu Behavior
9
10
  - drawer_sizes: Sizes
10
11
  - drawer_overlay: Overlay
11
12
  - drawer_borders: Borders
12
- - drawer_breakpoints: Open on Breakpoints
@@ -3,3 +3,4 @@ export { default as DrawerSizes } from './_drawer_sizes.jsx'
3
3
  export { default as DrawerOverlay } from './_drawer_overlay.jsx'
4
4
  export { default as DrawerBorders } from './_drawer_borders.jsx'
5
5
  export { default as DrawerBreakpoints } from './_drawer_breakpoints.jsx'
6
+ export { default as DrawerMenu } from './_drawer_menu.jsx'