Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@react-md/divider
Advanced tools
This package is used to create horizontal or vertical dividers in your application.
Dividers group and separate content within lists and page layouts. The divider is a thin rule, lightweight yet sufficient to distinguish content visually and spatially.
npm install --save @react-md/divider
This package is not super helpful on its own, so it is recommended to also install the following packages:
npm install --save @react-md/theme \
@react-md/typography \
@react-md/list \
@react-md/icon
You should check out the full documentation for live examples and more customization information, but an example usage is shown below.
One of the main use-cases will probably be to display a list with specific dividers or to add dividers between page elements:
import React from "react";
import { render } from "react-dom";
import { Divider } from "@react-md/divider";
import { List, ListItem } from "@react-md/list";
const App = () => (
<main>
<div className="section-1">
<Text>Here is some text.</Text>
</div>
<Divider />
<div className="section-2">
<Text>Here is some more text.</Text>
</div>
<List>
<ListItem id="item-1">Item 1</ListItem>
<ListItem id="item-2">Item 2</ListItem>
<ListItem id="item-3">Item 3</ListItem>
<ListItem id="item-4">Item 4</ListItem>
<Divider />
<ListItem id="item-5">Item 5</ListItem>
</List>
</main>
);
render(<App />, document.getElementById("root"));
2.9.0 (2021-07-18)
This release is focused around the FileInput
component in the @react-md/form
package and implementing a useFileUpload
hook to handle uploading/previewing files in the browser. However, there is a notable change in this release for the form documentation since the demos have been split into the following pages:
FileInput
correctly center the icon when children aren't provided (3a6ab33)useLayoutNavigation
possible perf fix (3d65e4e)FileInput
automatically swaps button type to text if children exist (e5585e1)FormMessageCounter
component added to public API (1508812)useFileUpload
hook to upload files to the browser (efb3f2f), closes #1159useDropzone
hook (bc07a1f)useFileUpload
(49ce4d9)useFileUpload
(8f9002e)eslint
error after updating prettier
(75a9b0f)Select
Options Demo (367cc0d)FAQs
This package is used to create horizontal or vertical dividers in your application.
The npm package @react-md/divider receives a total of 1,166 weekly downloads. As such, @react-md/divider popularity was classified as popular.
We found that @react-md/divider demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.