Skip to Content
Columbus

Label

Renders an accessible label associated with controls.

Installation

pnpm dlx shadcn@latest add @columbus/label

Usage

Point the label at a control with htmlFor, or wrap the control in it.

import { Label } from "@/components/ui/label";

<Label htmlFor="email">Email</Label>;

Inside a Field, use FieldLabel instead. It links to the field's control for you.

With a checkbox

Wrapping a control makes the whole label clickable.

API reference

Renders a native <label> and accepts all its attributes. Built with Base UI's useRender.

Prop

Type

On this page