Skip to main content
v7

InputField

A labeled field wrapper with slots, validation, feedback, and ARIA relationships.

Package@g4rcez/componentsSectionForm Controls

Examples

Basic InputField

Wraps a native input with a label, border, and error/feedback support.

Basic

With Left and Right Slots

left and right props render content inside the field border, before and after the input.

With slots

Error and Info States

Pass error to show validation text. Pass info to display a tooltip next to the label.

Error & info

When to use InputField

Use when

Use InputField when a control needs a persistent label, hint, validation message, or slot.

Avoid when

Avoid replacing the label with placeholder text or using InputField for non-form content.

Accessibility

Keep the title or label present, connect errors and hints to the control, and let the field expose its required state.