Pallas UI
DocsComponents
Core Concepts
    • Introduction
    • Getting Started
    • Theming
    • Color Tokens
    • Spacing & Sizing
    • Layout Guide
    • AspectRatio
    • Box
    • Flex
    • Grid
    • Shapes
Previews
    • Accordion
    • Alert
    • Avatar
    • Badge
    • Breadcrumb
    • Button
    • Carousel
    • Checkbox
    • Combobox
    • Command
    • Date Picker
    • Form
    • Input
    • Input OTP
    • Label
    • MenuBar
    • Modal
    • Popover
    • Progress
    • Radio Group
    • Segmented
    • Select
    • Separator
    • Sheet
    • Sidebar
    • Skeleton
    • Slider
    • Spinner
    • Steps
    • Switch
    • Tabs
    • Textarea
    • Toast
    • Tooltip
    • Typography
  1. Components
  2. Label

Label

Renders an accessible label associated with controls.

Installation

Install the following dependencies

npm install @radix-ui/react-label

Copy and paste the following code into your project

import * as LabelPrimitive from '@radix-ui/react-label'
import { styled } from '@styled-system/jsx'
import { type LabelVariant, label } from '@styled-system/recipes'
 
export interface LabelProps extends LabelVariant, LabelPrimitive.LabelProps {}
 
export const Label = styled(LabelPrimitive.Root, label)

Update the import paths to match your project setup

Usage

import { Label } from '@/components/ui/label'
<Label htmlFor="email">Your email address</Label>

Examples

With Input

With Checkbox

Built with ❤️ by the carbonteq team. The source code is available on GitHub.

© 2025 Pallas UI. All rights reserved.