Skip to content
nexubDesign System
v2.4.0

Components · Form & Input

Label

StableSince v0.0.1

An accessible form label that optionally shows a required asterisk and links to an input via htmlFor.

import { Label } from '@nexub/react';

Examples

Default

Required

With input

Props

Props
PropTypeDefaultDescription
htmlForstring—Associates the label with a form control by its id.
requiredboolean—Renders a required indicator (asterisk) after the label text.
disabledboolean—Applies disabled styling to the label.
size'sm' | 'md''md'Controls label font size.

On iOS & Android