0
Components

Badge

A small label used to highlight status, counts, or categorical information, with support for anchoring on top of other elements.

Installation

Usage

Examples

Secondary

Outline

Destructive

With Icon

Anchored Dot

Anchored Counter

API Reference

Badge

Renders a styled badge element. Supports polymorphic rendering via Base UI useRender.

PropTypeDefaultDescription
variant"default" | "secondary" | "outline" | "destructive" | "error" | "info" | "success" | "warning""default"Visual style variant
size"dot" | "sm" | "default" | "lg""default"Size of the badge (dot renders a compact indicator with no text)
renderReact.ReactElement | ((props, state) => React.ReactElement)-Custom element to render (e.g. <a> or <button>)
classNamestring-Additional CSS classes
...propsReact.ComponentProps<"span">-All standard span attributes are supported

BadgeAnchor

Wrapper that positions a child Badge relative to another element, such as an icon button or avatar.

PropTypeDescription
renderReact.ReactElement | ((props, state) => React.ReactElement)Custom element to render as the wrapper
classNamestringAdditional CSS classes
...propsReact.ComponentProps<"span">All standard span attributes are supported

© taut ui — built with Base UI and Tailwind CSS v4.