Hextech UI

Alert

Live example

Alert

Your next chapter

Save a build before starting your next session.

Installation

Terminal
npx shadcn@latest add https://hextech-ui.vercel.app/r/alert.json

API reference

These are the main Alert options. See the exported TypeScript types for inherited native or primitive props.

PropTypeDefault
tonedefault | info | success | warning | destructivedefault
rolealert | status (optional)—
classNamestring on every part—

Tones

Use text to describe the outcome as well as color. Static notices do not announce themselves. For a newly inserted urgent error, explicitly set role="alert"; use role="status" for a non-urgent update.

Live example

Notice tones

Changes saved

Your local configuration is ready.

Review your changes

Check the configuration before continuing.

Could not save

Your changes are still available. Try again.