
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@spectrum-web-components/banner
Advanced tools
An **sp-banner** is an additional label an existing component may have. Banners cannot be interacted with. Banners in Spectrum have three variations for different uses as well as the ability to place it overlaid in the top-right corner of a container.
An sp-banner is an additional label an existing component may have. Banners cannot be interacted with. Banners in Spectrum have three variations for different uses as well as the ability to place it overlaid in the top-right corner of a container.
<sp-banner>
<div slot="header">Header Text</div>
<div slot="content">Content of the banner</div>
</sp-banner>
Banners intended for providing information. This is the default banner variant.
<sp-banner type="info">
<div slot="header">This is an info banner</div>
<div slot="content">Description here</div>
</sp-banner>
Banners intended to provided a warning with a brief description. Less severe than an error banner.
<sp-banner type="warning">
<div slot="header">This is a warning banner</div>
<div slot="content">Be careful!</div>
</sp-banner>
Banners intended to indicate an error as occurred, with a brief description of the issue. More severe than a warning banner.
<sp-banner type="error">
<div slot="header">This is an error banner</div>
<div slot="content">Something bad happened</div>
</sp-banner>
In addition to the variant, banners can be placed in the top-right corner of its container by giving them a corner prop. Note that the position of the containing element needs to be either relative or absolute
<div
style="width: 300px; height: 100px; background-color: #ba598b; position: relative;"
>
<sp-banner type="warning" corner>
<div slot="header">This banner is in a corner</div>
<div slot="content">Neat!</div>
</sp-banner>
</div>
A Banner does not have a default semantic role communicated to assistive technology, but it does accept id, role and other aria- props that can be added to to improve accessibility depending on context.
FAQs
An `<sp-banner>` is an additional label an existing component may have. Banners cannot be interacted with. Banners in Spectrum have three variations for different uses as well as the ability to place it overlaid in the top-right corner of a container.
The npm package @spectrum-web-components/banner receives a total of 1,539 weekly downloads. As such, @spectrum-web-components/banner popularity was classified as popular.
We found that @spectrum-web-components/banner demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.