Alert preview
Inline notices with icons, actions and optional dismissal.
free · Feedback · primitive
When to use
- Use it when a product interface needs inline notices with icons, actions and optional dismissal.
- Choose it when the host application can supply the required state and keep business logic outside the presentation component.
Alternatives
- Choose status-badge instead when animated labels for pending, success and error states is the actual interface need, rather than alert.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add https://tidalui.com/r/alert.jsonImport components/ui/tidal.css, components/ui/alert.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/alert.css";
import{TidalAlert}from"./components/ui/alert";
export default()=><div className="tidal-scope"><TidalAlert title={"Demo"}/></div>;API and props
TidalAlert.title (required)ReactNodeRequired title value accepted by this exported component.
TidalAlert.actionReactNodeOptional action value accepted by this exported component.
TidalAlert.announce"off" | "assertive" | "polite" | undefinedStatic notices are silent. Opt into one live message for a meaningful update.
TidalAlert.dismissDisabledboolean | undefinedOptional dismiss disabled value accepted by this exported component.
TidalAlert.dismissLabelstring | undefinedOptional dismiss label value accepted by this exported component.
TidalAlert.iconReactNodeOptional icon value accepted by this exported component.
TidalAlert.onDismissMouseEventHandler<HTMLButtonElement> | undefinedThe consumer removes the notice and owns any necessary focus return.
TidalAlert.toneTidalAlertTone | undefinedOptional tone value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- The host application owns data, validation, persistence, navigation, and service side effects described by this API.