Drawer
Loading
1<Drawer>2 <DrawerOpen>3 <Button variation="primary">Open drawer</Button>4 </DrawerOpen>5 <DrawerContent title="This is a drawer!">6 <DrawerBody>7 ...8 </DrawerBody>9 <DrawerFooter>10 <DrawerClose>11 <Button variation="secondary">Cancel</Button>12 </DrawerClose>13 <Button variation="primary" onClick={() => {}}>Submit</Button>14 </DrawerFooter>15 </DrawerContent>16</Drawer>
1<DrawerContent title="This is a small drawer!" width="small">...</DrawerContent>2<DrawerContent title="This is a default drawer!">...</DrawerContent>3<DrawerContent title="This is a large drawer!" width="large">...</DrawerContent>4<DrawerContent title="This is an extra large drawer!" width="xlarge">...</DrawerContent>
Available as small, medium (default) and large
1<Drawer size="small">2 ...3</Drawer>45<Drawer>6 ...7</Drawer>89<Drawer size="large">10 ...11</Drawer>