Strongtie Design System
Getting StartedComponents

Command Palette

Search for a command to run...

Getting Started
  • Introduction
  • Setup Guide
  • Package Installation
  • Code Quality Setup
  • Migration Guide
  • Resources
Registry
  • Getting Started
  • Combobox
  • Datepicker
  • MultiSelect
  • Tree
Guides
  • Framework Recommendations
Foundations
  • States
  • Variables
Components
  • Accordion
  • Alert
  • Alert Dialog
  • Avatar
  • Badge
  • Breadcrumb
  • Button
  • Button Group
  • Calendar
  • Card
  • Carousel
  • Chart
  • Checkbox
  • Collapsible
  • Command
  • Combobox
  • Context Menu
  • Date Picker
  • Dialog
  • Drawer
  • Dropdown Menu
  • Empty
  • Field
  • Hover Card
  • Input
  • Input Group
  • Item
  • Kbd
  • Label
  • Menubar
  • Multi Select
  • Navigation Menu
  • Pagination
  • Popover
  • Progress
  • Radio Group
  • Scroll Area
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Skeleton
  • Slider
  • Switch
  • Table
  • Tabs
  • Textarea
  • Toaster
  • Toggle
  • Toggle Group
  • Tooltip
  • Tree
2026 Simpson Strong-Tie
  1. Docs
  2. Components
  3. Label

Label

PreviousNext

Label is a text component that provides accessible descriptions for form controls.

Labels create explicit associations between descriptive text and form inputs, improving accessibility for screen reader users and enabling click-to-focus behavior where clicking the label focuses the associated input. Proper labeling is essential for form accessibility and helps all users understand what information is expected in each field. Labels support both explicit associations via htmlFor attribute and implicit associations by wrapping the input element.

Use labels for all form inputs to ensure accessibility and improve usability. Labels should be clear, concise, and positioned consistently throughout your forms. Avoid using placeholder text as a replacement for labels, as placeholders disappear when users start typing and aren't accessible to all assistive technologies.

Example

"use client"

import { Label } from "@strongtie/design-system/label"

export function LabelDefault() {
  return <Label htmlFor="email">Your email address</Label>
}

Installation

npm install @strongtie/design-system
import { Label } from "@strongtie/design-system/label"

Props

All components accept standard HTML attributes and React props.

Example

"use client"

import { Label } from "@strongtie/design-system/label"

export function LabelDefault() {
  return <Label htmlFor="email">Your email address</Label>
}

Styling

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

Classes

CSS classes used by this component:

  • label

Accessibility

Ensure proper accessibility attributes are added when implementing this component.

KbdMenubar

On This Page

ExampleInstallationPropsExampleStylingClassesAccessibility

Contribute

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