Components › Feedback
Announcement
A dismissible card for product news, with one action.
Installation
npx plankui@latest add announcementUsage
import { Announcement } from "@/components/ui/announcement";
<Announcement title="Two new components" onDismiss={hide}>Calendar is ready.</Announcement>API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| title | ReactNode | required | Headline. |
| icon | ReactNode | megaphone | Shown on an accent key. |
| action | ReactNode | A button under the text. | |
| onDismiss | () => void | Shows a close button. |