Draft UI

Text Field

Displays a form input field or a component that looks like an input field.

Installation

bash
npx @sly-cli/sly add draft-ui text-field

Examples

Default

This is the default TextField.

With Error

Use the isInvalid prop to make an Input invalid. You can also include an error message to tell users why the input is invalid.

This is an error message

Disabled

Use the isDisabled prop to make the Input disabled.