Skip to content
RefineUI

Label

Text label control for form fields.

Overview

Machine-readable contract from Component Spec.

component: labelexport: Labelversion: 1attributes: data-refineui=label

Anatomy

Partdata-refineui
rootlabel
requiredlabel-required

Variants

AxisValues
sizesm, md, lg

Layout

PropertyValue
directionlogical
rtltrue
npm install @refineui/react @refineui/tokens
import { Label, LabelRequired } from "@refineui/react";
<Label htmlFor="email">Email address</Label>
<Label htmlFor="password" required>
Password
</Label>
<Label size="lg" disabled>
Disabled Label
</Label>
<Label htmlFor="name">
Name <LabelRequired />
</Label>
PropDefaultTypeDescription
requiredfalsebooleanConvenience prop that appends LabelRequired.
size"md""sm" | "md" | "lg"Label size tier.
disabledfalsebooleanShows disabled styling.
htmlForstringAssociates label with form control.

Visual required indicator (asterisk). Use when composing labels manually.