Components•Alerts
Components•Alerts
Alerts
A compact status callout for surfacing important feedback with a title and supporting message.
Dependencies
Copy below cli
npx shadcn add @bjork-ui/primitive-alertsHow to use
import { BjorkAlert, BjorkAlertTitle, BjorkAlertDescription } from "@/components/isaiahbjork/primitives";Props
classNamestringPass through styling hooks for the Alerts primitive without replacing the base Bjork surface.
childrenReactNodeComposable content, labels, icons, and nested content where the primitive supports them.
...propscomponent propsPass through the normal props for this primitive while the Bjork wrapper handles the visual treatment.
Usage spike detected
The weekly report is ready and includes three high-priority accounts.
System alert
Use when a surface needs a short title, icon, and one supporting sentence.
<BjorkAlert> <div className="flex items-center gap-2"> <Bell aria-hidden="true" /> <BjorkAlertTitle>Usage spike detected</BjorkAlertTitle> </div> <BjorkAlertDescription>Report is ready.</BjorkAlertDescription></BjorkAlert>