Text Field
Displays a form input field or a component that looks like an input field.
Installation
CLI
Copy & Paste
npx @sly-cli/sly add draft-ui text-fieldExamples
Default
This is the default TextField.
Example
Code
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.
Example
Code
This is an error message
Disabled
Use the isDisabled prop to make the Input disabled.
Example
Code