Socket
Book a DemoInstallSign in
Socket

@emanon/ema-drawer

Package Overview
Dependencies
Maintainers
11
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emanon/ema-drawer

## Properties

0.4.0
latest
Source
npmnpm
Version published
Maintainers
11
Created
Source

ema-drawer

Properties

PropertyAttributeTypeDefaultDescription
openedopenedbooleanfalseWhether showing or not.
persistentpersistentbooleanfalseClicking outside of the element will not deactivate it.
placementplacement"top" | "right" | "bottom" | "left""left"Position where to show on the window.

Methods

MethodType
close(): void

Events

EventTypeDescription
closeCustomEvent<{}>Fires when the drawer has closed.
openedCustomEvent<{}>Fires when Drawer has opened.
request-closeCustomEvent<{ accept: () => void; }>Fires when the drawer want to be closed.
Call the function passed to accept.

CSS Custom Properties

PropertyDefaultDescription
--ema-c-drawer-containerBGColor"#fff"Container background color.
--ema-c-drawer-containerMaxSize"auto"Container max size.
--ema-c-drawer-containerRadius0Container Radius.
--ema-c-drawer-containerSize"30%"Container size.
--ema-c-drawer-diff"100px"Transform length.
--ema-c-drawer-duration"300ms"Length of transition time.
--ema-c-drawer-overlayColor"#80888f"Overlay color.
--ema-c-drawer-overlayOpacity0.5Ovaerlay opacity.

FAQs

Package last updated on 28 Jan 2021

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.