- Documentation
- Components
- Badges, icons and tooltips
Badges, icons and tooltips
Put a label, an icon or a definition inside a sentence.
These three sit in the middle of a line of text.
A new endpoint is Beta. Send an Idempotency keyA value you send so a retried request isn't run twice. with it, and look for the in the response.
A new endpoint is <Badge color="orange">Beta</Badge>. Send an <Tooltip tip="A value you send so a retried request isn't run twice." headline="Idempotency key">idempotency key</Tooltip> with it, and look for the <Icon icon="circle-check" color="#256a3e" /> in the response.Badge props
Section titled “Badge props”colorstringThe tone. A name containing
redordestructiveis red,yellowororangeis amber, andblue,greenorpurpleis that color. Anything else is neutral.
sizestringxs,sm,mdorlg.
shapestringroundedgives squarer corners.
iconstring- An icon before the text.
strokeboolean- Outlines the badge instead of filling it.
disabledboolean- Dims the badge.
Icon props
Section titled “Icon props”iconstringrequiredA Lucide or Font Awesome name, a brand, or an image path. See icons.
sizenumber- Size in pixels. Without it, the icon matches the text.
colorstring- Hex, a color name, or
rgb()orhsl().
Tooltip props
Section titled “Tooltip props”A tooltip appears on hover and on keyboard focus, and Esc hides it.
tipstring- The text in the tooltip.
headlinestring- A bold line above the tip.
ctastring- The text of a link shown beside the tip. It needs
href.
hrefstring- Where the link goes. It needs
cta.