A component for displaying a status badge with a color.
StatusBadge
import {StatusBadge} from "attio/client" function Example({ isActive }: { isActive: boolean }) { const color = isActive ? "#00D17E" : "#FF0000" const label = isActive ? "Active" : "Inactive" return ( <StatusBadge color={color}>{label}</StatusBadge> ) }
Was this page helpful?