A field that captures single-line text or data input from the user.
| Property | Description | Type |
|---|---|---|
label | Adds a label above the input element. | string |
placeholder | Provides a subtle hint within the input. Useful to communicate the proper formatting required. | string |
name | Provides the name attribute to the input html element. | string |
disabled | Makes the input inaccessible. | boolean |
required | Makes the input a required field and styles the label with a red asterisk. | boolean |
expanded | Allows the input to strech to full width. | boolean |
error | Adds an error message below the input. | string |
hint | Adds a hint below the input. | string |
align | Aligns the text within the input. | start | end |