Hygge-UI

Field

Used to add labels, help text, and error messages to form fields.

Source

Examples

Error text

Pass the invalid and errorText prop to Field to indicate that the field is invalid.

This is an error text

Helper text

Pass the helperText prop to Field to add helper text to the field.

This is a helper text

Disabled

Use the disabled prop to disable the field.

Textarea

Here's how to use the field component with a textarea.