Introducing PrimeReact v11-alpha 🎉Discover Now
styledForm

IftaLabel

IftaLabel visually integrates a label with its form element.

preview

Usage#

import { IftaLabel } from '@primereact/ui/iftalabel';
<IftaLabel></IftaLabel>

Examples#

Basic#

An infield top-aligned label positioned inside the input boundary.

basic-demo

Invalid#

When the form element is invalid, the label is also highlighted.

invalid-demo

Accessibility#

Screen Reader#

IftaLabel does not require any roles and attributes.

Keyboard Support#

Component does not include any interactive elements.