Badge

A small, distinct component that displays the status or classification of an item.

Import

import { Badge } from '@vortex-kit/vortex';
import type { BadgeProps } from '@vortex-kit/vortex';

Display

<Badge color="neutral" type="outline">Badge</Badge>

Allied components

Badge

Prop
Type
Default
type
union
fill
children
React.ReactNode
color
union
neutral
onlyIcon
SVGIcon
ariaLabel
string
leftIcon
SVGIcon
rightIcon
SVGIcon
size
union
md
hidden
boolean
href
string
onClick
function
onDismiss
function
dismissAriaLabel
string
rounded
boolean
className
union
attributes
object

Badge.Frame

Prop
Type
Default
position
union
top-end
children
React.ReactNode
className
union
attributes
object
Badge Component Props — Vortex Design System