New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@ds-kit/drawer

Package Overview
Dependencies
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ds-kit/drawer

Drawer component

latest
npmnpm
Version
4.3.0
Version published
Weekly downloads
5
Maintainers
4
Weekly downloads
 
Created
Source

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>

FAQs

Package last updated on 20 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts