Form fields·loomora/Label

Label

A label element intended for composition with form inputs or as a standalone field label.

Interactive live playground

Tweak props, change states, and see the live component respond in real time.

Live

How to call

Import directly from the Loomora package root. For projects without Tailwind CSS, ensure loomora/dist/index.css is imported once in your root layout.

import { Label } from 'loomora'

<Label required>Email address</Label>

API reference

Important public props and how they affect rendering.

4 props
PropTypeDefaultDescription
childrenReactNode—Visible label content.
requiredbooleanfalseDisplays the configured required indicator.
classNamestringconfig defaultClasses applied to the label.
attributesLabelHTMLAttributes—Native label attributes, including htmlFor.