Component libraryStatus badge
Components/Feedback

Status badge

Free

Animated labels for pending, success and error states.

npx shadcn@latest add https://tidalui.com/r/status-badge.json
Desktop viewport

Installation

Terminal
npx shadcn@latest add https://tidalui.com/r/status-badge.json

Import components/ui/tidal.css, components/ui/status-badge.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

Required short descriptive label:string. Optional status neutral|pending|success|warning|error (defaultneutral), size sm|md (defaultmd), announce (defaultfalse), native span attributes/ref, className/style. Label text defines the status; icons are decorative. Width follows intrinsic text/font changes; an explicit style.width opts out of automatic measurement. Constrained labels visually truncate while retaining their full accessible text. Pending spinner runs only while pending and stops with reduced motion. Opt into announce only for a changing status, not every badge in a static list. The caller owns actual state and operation lifecycle.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.