Alert

NEW

An alert component that collapses smoothly in height and opacity on dismissal, with tone-aware icons, action slot, and accessibility roles.

Operation successful

Your components have been deployed cleanly to production.

Installation

Add the component directly to your repository using shadcn CLI:

npx shadcn@latest add Surajmaurya1/easyui/alert

API Reference

PropTypeDefaultDescription
tone'neutral' | 'info' | 'success' | 'warning' | 'danger''neutral'Color tone and severity semantic level
iconReact.ReactNode | falseundefinedCustom icon element, or false to suppress icon
dismissiblebooleanfalseRenders an interactive close button
onDismiss() => voidundefinedCallback invoked after the exit collapse animation completes
actionReact.ReactNodeundefinedOptional right-hand action element (e.g. action button)
classNamestringundefinedAdditional CSS classes for the alert container