Strongtie Design System
Getting StartedComponents

Search documentation

Search for a command to run or a page to navigate to.

Getting Started
  • Introduction
  • Setup Guide
  • Package Installation
  • Styles Only (CSS)
  • Code Quality Setup
  • Resources
Guides
  • Framework Recommendations
  • Design Standards
  • Design Standards Examples
AI-Assisted Development
  • AI Agent Guide
  • AI Agent Skills
  • AGENTS.md Template
Registry
  • Getting Started
  • Combobox
  • Datepicker
  • MultiSelect
  • Tab Nav
  • Tree
Foundations
  • States
  • Variables
Migrations
  • Migration Guide
  • CDN Migration Guide
  • Telerik Migration
Governance
  • Governance Model
  • Contribution Model
Components
  • Accordion
  • Alert
  • Alert Dialog
  • Avatar
  • Badge
  • Breadcrumb
  • Button
  • Button Group
  • Calendar
  • Card
  • Carousel
  • Chart
  • Checkbox
  • Collapsible
  • Combobox
  • Command
  • Context Menu
  • Date Picker
  • Dialog
  • Drawer
  • Dropdown Menu
  • Empty
  • Field
  • Form
  • Hover Card
  • Input
  • Input Group
  • Input Otp
  • Item
  • Kbd
  • Label
  • Menubar
  • Multi Select
  • Navigation Menu
  • Pagination
  • Popover
  • Progress
  • Radio Group
  • Resizable
  • Scroll Area
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Skeleton
  • Slider
  • Sonner
  • Spinner
  • Switch
  • Tab Nav
  • Table
  • Tabs
  • Textarea
  • Toaster
  • Toggle
  • Toggle Group
  • Tooltip
  • Tree
2026 Simpson Strong-Tie
  1. Docs
  2. Components
  3. Badge

Badge

PreviousNext

Badge is a small visual indicator for displaying status, labels, and categorical information.

Badges are compact UI elements used to highlight important information, categorize content, or display status. They come in various visual styles (variants) to convey different meanings such as success, error, warning, or informational states. Badges are typically non-interactive but can be combined with interactive elements like buttons or links.

Use badges to draw attention to specific attributes, counts, or statuses without taking up much space in your interface. They're particularly useful in lists, tables, and headers to provide quick visual context. Badges should be concise and contain minimal text to maintain their compact nature and visual impact.

Example

Badge
"use client"

import { Badge } from "@strongtie/design-system/badge"

export function BadgeDefault() {
  return <Badge>Badge</Badge>
}

Installation

npm install @strongtie/design-system
import { Badge } from "@strongtie/design-system/badge"

Props

<Badge>

PropTypeDefaultDescription
variant"default" | "secondary" | "destructive" | "outline" | null-

Examples

Badge
"use client"

import { Badge } from "@strongtie/design-system/badge"

export function BadgeDefault() {
  return <Badge>Badge</Badge>
}

Variants

DefaultSecondaryOutlineDestructive
"use client"

import { Badge } from "@strongtie/design-system/badge"

export function BadgeVariants() {
  return (
    <div className="flex gap-2">
      <Badge variant="default">Default</Badge>
      <Badge variant="secondary">Secondary</Badge>
      <Badge variant="outline">Outline</Badge>
      <Badge variant="destructive">Destructive</Badge>
    </div>
  )
}

Styling

Components can be styled using the className prop. The design system uses Tailwind CSS for styling.

Classes

CSS classes used by this component:

  • badge

Accessibility

Ensure proper accessibility attributes are added when implementing this component.

AvatarBreadcrumb

On This Page

ExampleInstallationProps<Badge>ExamplesVariantsStylingClassesAccessibility

Contribute

  • Report an issue
  • Request a feature
  • Edit this page