Alert

An inline message that stays in the layout, styled by tone, with actions and a dismiss button if needed.

UI SkillbookSiteplane docsSiteplane UI 1.8.1
Works withClaude CodeCodexCursorOpenCodeUniversal
Install

Run npx uiskillbook get siteplane-alert and follow the Siteplane Alert skill it prints for this task.

Paste this into your agent.

Alert reports the state of a page, form or card and stays on screen until someone deals with it, as with scheduled maintenance or a failed sync. Place it inline, as a banner across the top of the page, or as a band across a card.

Install

bashnpx shadcn@4.18.0 add @siteplane/alert

Import it from @/siteplane/components/alert. The project needs Siteplane UI's one-time setup first: installation.

When to pick it

  • vs Toast: Pick Toast instead for a brief confirmation after an action that should disappear on its own.
  • vs Alert Dialog: Pick Alert Dialog instead when people must make a decision before continuing.
  • vs Empty State: Pick Empty State instead when a collection has no content and needs a next step.

Rules

  • Pick variant for the tone and state the status in the text, so color is not the only signal.
  • Rely on the role the variant sets: error and warning interrupt as alerts, the others announce politely.
  • Make the icon the first child of Alert, ahead of the title, so it gets its own column.
  • Use layout="banner" for page-wide issues and layout="band" directly under a CardHeader for one card's problem.
  • Put buttons in AlertAction and connect their handlers in your app; use AlertClose for a dismiss control.

Reference

  • Alert docs, with every prop, part and example (Markdown)
  • Siteplane UI 1.8.1, Feedback. Read the installed source under src/siteplane before relying on an API.

Add to your agent

Print this skill from the terminal, or connect the whole catalog over MCP. Setup guides

CLI

npx uiskillbook get siteplane-alert

MCP server

https://www.uiskillbook.com/mcp

Questions

Related skills

Better Colorsby jakubkrehel

OKLCH color space for web projects. Convert hex/rgb/hsl to oklch, generate palettes, check contrast, handle gamut boundaries, and theme with Tailwind v4. Triggers on oklch, color conversion, palette generation, contrast ratio, gamut, display p3, design tokens, hue drift, chroma, dark mode colors.

VisualExternalGitHub stars: 9.2K

Better Interfaceby jakubkrehel

Run a holistic interface review across accessibility, layout, writing, typography, color, and visual polish.

VisualExternalGitHub stars: 9.2K

Better Typographyby jakubkrehel

Web typography from choosing fonts to spacing, wrapping and accessibility. Use when picking or pairing typefaces, configuring variable fonts or OpenType features, setting up a type scale, styling text in components, truncating text, styling underlines, selection, placeholders or carets, or reviewing frontend code for typography. Triggers on typography, fonts, font formats, woff2, variable fonts, font-weight, opentype, font-feature-settings, letter-spacing, line-height, type scale, tabular numbers, text-wrap, truncation, line clamp, underlines, text-decoration, text selection, iOS input zoom, font smoothing, text contrast, measure, line length, text-box, smart punctuation, drop cap.

TypographyExternalGitHub stars: 9.2K

Color Contrast for Taste, Not Just Complianceby UI Skillbook

Use accessible contrast ratios as a floor, then build restrained hierarchy on top of them rather than treating them as the whole job.

Visual