Skip to content
Cynco UI

Components · Forms

FieldLabel

A field label (a native <label>) with optional description and info tooltip.

import { FieldLabel } from "@cynco-labs/ui";

Example

Use

Fields that need a hint.

Props

Children, htmlFor (the control's id), optional description + descriptionId, tooltip, empty, and any <label> props.

Notes

The description and tooltip render outside the <label>, so the control's name is just the label text; point the control's aria-describedby at descriptionId to read the hint with it. With a description or tooltip, className goes on the wrapper and <label> props on the label. empty renders an aria-hidden spacer.

Source Demo source Markdown