
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@element-public/react-drawer
Advanced tools
Navigation drawers provide access to destinations and app functionality, such as switching accounts. It can either be permanently on-screen or controlled by a navigation menu icon. A navigation drawer is recommended for: 1. Apps with five or more top-level destinations 2. Apps with two or more levels of navigation hierarchy 3. Quick navigation between unrelated destinations
@element:registry=https://artifactory.bayer.com/artifactory/api/npm/npm-platforms-engineering/
npm i @element/react-components @element/themes
npm i @element/react-drawer @element/themes
The Drawer component works with, or include, other components, like Button, to open, close, and navigate the Drawer, Typography, to apply certain styles and sizes of text in the Drawer, and List, to improve the flow of the Drawer's contents for users.
Different Drawers should be used in various cases. For example, a Permanent Drawer could be used to prevent a user from closing or navigating away from the Drawer, so it is always visible. Alternatively, a Dismissible Drawer can be opened and closed by clicking a button, so it only appears when the user wants it to.
Drawer uses the following sub components:
Name | Description |
---|---|
Drawer | Primary container for all the drawer contents |
DrawerHeader | Contains the top title portion of the drawer. |
DrawerContent | The container for the main body of the drawer. |
DrawerScrim | Covers the screen behind the drawer component to focus the users attention. |
DrawerAppContent | Container for app contents. Its child is resized when the drawer opens/closes. |
Name | Type | Default | Required | Description |
---|---|---|---|---|
belowTopAppBar | boolean | null | false | Positions the modal lower, below the TopAppBar. |
className | string | undefined | false | The css class name to be passed through to the component markup. |
open | boolean | null | false | Displays the drawer when variant is either dismissible or modal` |
variant | string | empty string | false | Defines the type of drawer. By default the drawer will be always shown, a permanent drawer. If defined, either modal or dismissible Accepted Values: modal, dismissible |
Name | Type | Default | Required | Deprecated | Description |
---|---|---|---|---|---|
dismissible | boolean | undefined | false | Use variant='dismissible' instead. | Enables a dismissible drawer. |
modal | boolean | undefined | false | Use variant='modal' instead. | Enabled a modal drawer. |
Name | Type | Default | Required | Description |
---|---|---|---|---|
children | React.ReactNode | null | false | Content to be rendered inside the Drawer |
Name | Default | Required | Params | Description |
---|---|---|---|---|
onClose | null | false | Fired when drawer is closed. | |
onOpen | null | false | Fired when drawer is opened. |
Description |
---|
Drawer: Child component DrawerToolbarSpacer has been removed. See DrawerAppContent . |
Name | Type | Default | Required | Description |
---|---|---|---|---|
belowTopAppBar | boolean | null | false | Positions the modal lower, below the TopAppBar. |
className | string | undefined | false | The css class name to be passed through to the component markup. |
Name | Type | Default | Required | Description |
---|---|---|---|---|
children | React.ReactNode | null | false | Content to be rendered inside the DrawerAppContent |
Name | Type | Default | Required | Description |
---|---|---|---|---|
className | string | undefined | false | The css class name to be passed through to the component markup. |
Name | Type | Default | Required | Description |
---|---|---|---|---|
children | React.ReactNode | null | false | Content to be rendered inside the drawer. Most commonly a list, but accepts any valid markup. |
Name | Type | Default | Required | Description |
---|---|---|---|---|
className | string | undefined | false | The css class name to be passed through to the component markup. |
subtitle | string | empty string | false | Subtitle of Drawer Header |
title | string | empty string | false | Title of Drawer Header |
Name | Type | Default | Required | Description |
---|---|---|---|---|
avatar | React.ReactNode | null | false | Most commonly an avatar style image, but accepts any valid markup. |
children | React.ReactNode | null | false | Most commonly a text or a Typography component, but accepts any valid markup. |
FAQs
Drawer component for Element React
The npm package @element-public/react-drawer receives a total of 98 weekly downloads. As such, @element-public/react-drawer popularity was classified as not popular.
We found that @element-public/react-drawer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.