Scan your whole stack
Are you using @propellerads/alert?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v8.1.0
@propellerads/alert was last scanned on 24 Nov 2026 at version 8.1.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 8.1.0 LATEST | 24 Nov 2026 | No rules fired |
| 8.0.0 | 21 Oct 2026 | No rules fired |
| 7.0.0 | 13 Oct 2026 | No rules fired |
| 6.0.1 | 3 Oct 2026 | Not shown |
| 6.0.0 | 29 Sep 2026 | Not shown |
Findings for v8.1.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 8.1.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
A block that tells the user something about the page without asking them anything: a payment went through, a balance runs low, a campaign stopped.
Version 6 is built the way Button is: one stylesheet, variants picked by class-variance-authority, every colour, gap, corner and font from @propellerads/tokens. The layout follows shadcn's Alert; the icon and the text are props, so that an alert without an icon or without any text does not compile.
bun add @propellerads/alert
The built entry imports its own stylesheet. The tokens are the app's:
import '@propellerads/tokens/common.css';
import '@propellerads/tokens/propellerads.css'; // or monetag / propush / zeydoo
import Alert, {AlertAction} from '@propellerads/alert';
<Alert
variant="danger"
icon={<Card color="currentColor" />}
title="Payment failed"
description="Your card was declined. Check the details and try again."
>
<AlertAction>
<Button variant="secondary" tone="danger">Retry</Button>
</AlertAction>
</Alert>
icon is required. Of title and description one is required, and both can
be there; TypeScript refuses an alert with neither. children is for
AlertAction.
The icon stands at the start of the first line, 16px, in the variant's icon
colour, and is hidden from screen readers: the title says what it shows. An
icon from @propellerads/icon needs color="currentColor" for that: it paints
its fill in its own colour, black by default.
title and description take any node. An <h3> as the title makes it a
heading of the page; each <p> in the description starts a line of its own.
<Alert icon={<UserCircle color="currentColor" />} title={<h3>Verify your account</h3>} description="…" />
For a promo or a tip — something that stays on the page rather than news — pass
illustration instead of icon:
<Alert
variant="info"
illustration={<img src={zoneGroups} alt="" />}
title="Group zones to manage them together"
description="Set one bid and one schedule for zones with the same audience."
onClose={() => setIsHidden(true)}
>
<AlertAction>
<Button variant="secondary">Create a zone group</Button>
</AlertAction>
</Alert>
<img> or an <svg> — fills a 96px square at the start, beside the whole text, and keeps its proportions; a picture that is not square keeps to the top left of the square. --alert-illustration-size changes the square; 64px to 96px suits the pad. Under 400px of the alert's own width the picture goes above the text.AlertAction always stands under the text, --space-12 below it.onClose adds a cross in the top corner: a quiet ghost icon Button with Close from @propellerads/icon, 24px as in Dialog. closeLabel is what it says to a screen reader, Close by default. The alert does not hide itself; the page removes it.variant, as for any alert.role="alert": it is on the page from the start, so it is not announced. The picture is hidden from screen readers, as the icon is; the title says what it shows.icon and illustration exclude each other, and onClose comes only with illustration: TypeScript refuses the rest.v5 had one component with a type, an icon and the text as children:
// v5
<Alert type={AlertType.Danger} icon={<Warning color={Color.Error} />}>Your card was declined.</Alert>
// v6
<Alert variant="danger" icon={<Warning color="currentColor" />} description="Your card was declined." />
type → variant. AlertType → AlertVariant, same values: warning, success, danger, info.warning; now it is default, a note without a status. Write variant="warning" where the type was left out.icon is required. v5 drew Warning when it was not passed; v6 has no default and does not compile without one.@propellerads/icon paints its fill in its color, black by default. Pass color="currentColor" instead of Color.Error and the like: it takes the title's colour then, and follows the theme.description, or into title when it is one short line. children holds only AlertAction now.| Part | What it does |
|---|---|
Alert |
The block. role="alert" (none with illustration), --radius-16, --space-16 padding all round, the same for the icon, the text and the buttons. --space-12 from the icon to the text and from the text to the buttons. variant: see below |
title |
--font-h4 on a 20px line, in the variant's title colour |
description |
--font-paragraph, --space-4 under the title. Paragraphs inside follow on with no gap, each on a line of its own. A link is underlined and turns the title colour under the pointer |
AlertAction |
The buttons at the end of the first line, inside the padding, --space-8 apart — inline buttons, which have no padding, --space-16 — and centred on one another. When the alert is under 640px wide, they go under the text, in its column, and wrap onto lines of their own |
variant |
Pad | Icon | Title | Description |
|---|---|---|---|---|
default |
--color-quiet-bg |
--color-quiet |
--color-dark-inversion |
--color-quiet-text |
info |
--color-action-bg |
--color-action |
--color-action-text |
--color-action-text |
success |
--color-success-bg |
--color-success |
--color-success-text |
--color-success-text |
warning |
--color-warning-bg |
--color-warning |
--color-warning-text |
--color-warning-text |
danger |
--color-danger-bg |
--color-danger |
--color-danger-text |
--color-danger-text |
highlight |
--color-highlight-bg |
--color-highlight |
--color-highlight-text |
--color-highlight-text |
On a status the title and the description share the -text of the triple and
differ by weight. The tokens make -text for a heading rather than a paragraph,
and it stays under 4.5:1 on its pad in the light theme, so a description here
is a sentence or two, not a paragraph.
role="alert" makes a screen reader announce the block when it appears. An
alert that is on the page from the start and not news can take role="status"
or role={undefined}.
Alert and AlertAction take the props of their <div> — className, id, data-*.
alertVariants returns the class names for markup that is not the component.
The icon is 16px whatever the svg says; there is no size to override.
The action follows the alert's own width, not the window's: .alert is an
inline-size container named alert. An alert in a parent that sizes itself to
its content — width: max-content, a flex item with no width — has to be given
a width, or it has none.
The Storybook story at 2×: the playground, then variants, icons from @propellerads/icon, title only,
description only, action, two actions, narrow, long text and heading.
| Light | Dark |
|---|---|
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.