4.3.0 • Published 4 years ago

@ds-kit/drawer v4.3.0

Weekly downloads
-
License
LicenseRef-LICENS...
Repository
-
Last release
4 years ago

title: "Drawer" slug: "/packages/drawer" category: "overlay" componentNames:

  • "DrawerContainer"
  • "Drawer"
  • "DrawerToggle"

Drawer

The Drawer component is used to put navigation items, or settings in an offcanvas menu. It can be fixed to the window, or the parent component.

To see the Drawer component in action, check out the drawer pattern.

import { DrawerContainer, DrawerToggle, Drawer } from "@ds-kit/drawer"

Basic Example

Note that for the demos the drawer is confined to the parent element. You can also use a fixed positioned drawer. See the the drawer-pattern for reference.

<Div position="relative" py="5rem" overflow="hidden">
  <DrawerContainer name="DrawerContainer">
    <DrawerToggle>{"Toggle"}</DrawerToggle>
    <Drawer position="absolute" p="1.25rem">
      {"This is some drawer content"}
    </Drawer>
  </DrawerContainer>
</Div>
4.3.0

4 years ago

4.2.0

5 years ago

4.1.0

5 years ago

4.0.0

5 years ago

3.0.0

5 years ago

2.0.0

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago