Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@spectrum-web-components/divider
Advanced tools
`sp-divider` brings clarity to a layout by grouping and dividing content that exists in close proximity. It can also be used to establish rhythm and hierarchy.
sp-divider
brings clarity to a layout by grouping and dividing content that exists in close proximity. It can also be used to establish rhythm and hierarchy.
yarn add @spectrum-web-components/divider
Import the side effectful registration of <sp-divider>
via:
import '@spectrum-web-components/divider/sp-divider.js';
When looking to leverage the Divider
base class as a type and/or for extension purposes, do so via:
import { Divider } from '@spectrum-web-components/divider';
<h2 class="spectrum-Heading spectrum-Heading--sizeXS">Small</h2>
<sp-divider size="s"></sp-divider>
<p class="spectrum-Body">
Divide like-elements (tables, tool groups, elements within a panel, etc.)
</p>
Medium
<h2 class="spectrum-Heading spectrum-Heading--sizeS">Medium</h2>
<sp-divider size="m"></sp-divider>
<p class="spectrum-Body">
Divide subsections, or divide different groups of elements (between panels,
rails, etc.)
</p>
Large
<h2 class="spectrum-Heading spectrum-Heading--sizeM">Large</h2>
<sp-divider size="l"></sp-divider>
<p class="spectrum-Body">Page or Section Titles.</p>
When a vertical Divider is used inside of a flex container, use align-self: stretch; height: auto;
on the Divider.
<div style="height: 32px; display: flex;">
<sp-action-button quiet label="Zoom in">
<sp-icon-magnify slot="icon"></sp-icon-magnify>
</sp-action-button>
<sp-divider
size="s"
style="align-self: stretch; height: auto;"
vertical
></sp-divider>
<sp-action-button quiet label="Zoom in">
<sp-icon-magnify slot="icon"></sp-icon-magnify>
</sp-action-button>
</div>
Medium
<div style="height: 32px; display: flex;">
<sp-action-button quiet label="Zoom in">
<sp-icon-magnify slot="icon"></sp-icon-magnify>
</sp-action-button>
<sp-divider
size="m"
style="align-self: stretch; height: auto;"
vertical
></sp-divider>
<sp-action-button quiet label="Zoom in">
<sp-icon-magnify slot="icon"></sp-icon-magnify>
</sp-action-button>
</div>
Large
<div style="height: 32px; display: flex;">
<sp-action-button quiet label="Zoom in">
<sp-icon-magnify slot="icon"></sp-icon-magnify>
</sp-action-button>
<sp-divider
size="l"
style="align-self: stretch; height: auto;"
vertical
></sp-divider>
<sp-action-button quiet label="Zoom in">
<sp-icon-magnify slot="icon"></sp-icon-magnify>
</sp-action-button>
</div>
1.0.3 (2024-12-09)
FAQs
`sp-divider` brings clarity to a layout by grouping and dividing content that exists in close proximity. It can also be used to establish rhythm and hierarchy.
The npm package @spectrum-web-components/divider receives a total of 2,627 weekly downloads. As such, @spectrum-web-components/divider popularity was classified as popular.
We found that @spectrum-web-components/divider demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 13 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.