Import Announcement and compose its parts.
announcement.tsx
Announcement
<a>| Prop | Type | Default | Description |
|---|---|---|---|
| size | "default""lg""sm" | "default" | |
| variant | "beam""inverse""outline""secondary""shine" | "outline" | |
| loop | number | 4 | Seconds of one loop of the light: one lap of the beam, one cycle of the shine (the band crosses in the first 30%, then waits). |
From Base UIUseRenderBase UI docs | |||
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |
| ...props | <a> attributes | — | Every other attribute goes to the <a>, with a ref. |
AnnouncementTag
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "dashed""default""destructive""ghost""info""link""media""outline""secondary""success""warning" | — | |
From Base UIUseRenderBase UI docs | |||
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
AnnouncementTitle
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
AnnouncementSeparator
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
AnnouncementArrow
<svg>| Tab | Moves to the pill. |
|---|---|
| Enter | Opens the link. |
Built with
Installs with Announcement
- Components
- Badge





