Form Field

Accessible form wrapper with label, hint, and error text.

Usage

PreviewCode
We'll only use this for account updates.Project name is required.
At least 8 characters.

API Reference

VoltError — volt-error

InputTypeDefault
class string ''

VoltHint — volt-hint

InputTypeDefault
class string ''

VoltLabel — volt-label

InputTypeDefault
error boolean false
htmlFor string ''
class string ''

VoltFormField — volt-form-field

InputTypeDefault
class string ''

Component Source

Install via CLI:npx @voltui/cli add form-field
TypeScript
Loading editor…

Copy this code to your project. The component uses ng-primitives/form-field.