Show a badge & a short message in one pill, such as news above a heading.
View as MarkdownInstallation
Component API
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | - | The message beside the badge. |
| The message beside the badge. | |||
label | string | - | The badge's word, such as "New". |
| The badge's word, such as "New". | |||
href | string | - | |
solid | boolean | false | A solid badge in place of the tinted one, for news that leads a page. |
| A solid badge in place of the tinted one, for news that leads a page. | |||
dot | boolean | false | A dot in the badge, before its word. |
| A dot in the badge, before its word. | |||
badgePosition | leading | trailing | leading | Which end the badge sits at. |
| Which end the badge sits at. | |||
arrow | boolean | true | |
intent | neutral | info | success | warning | danger | info | What the news means, which tints the badge. |
| What the news means, which tints the badge. | |||
size | sm | md | lg | md | Padding and text size, the badge's with it. |
| Padding and text size, the badge's with it. | |||
shape | none | rounded | pill | rounded | |
className | string | - | |
focus | boolean | string | true | |