This is a default text input built using react-aria and is styled using tailwind css and twMerge. It is accessible by default.
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the TextField component. |
...props | TextFieldProps | - | Any additional props for the TextField component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the Label component. |
...props | LabelProps | - | Any additional props for the Label component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the ReactAriaInput component. |
...props | ReactAriaInputProps | - | Any additional props for the ReactAriaInput component. |
Name | Type | Default | Description |
---|---|---|---|
label | string | - | The label for the input field. |
isRequired | boolean | - | Whether the input field is required. |
isReadOnly | boolean | - | Whether the input field is read-only. |
className | string | - | Additional classes to apply to the Field component. |
...props | InputProps (extends ReactAriaInputProps) | - | Any additional props for the Field component. |
Checkout the default documentation of React Aria Input
This is a default input field with various states that can be used to display error messages, disabled fields, and invalid fields. This makes the usage of the input field more flexible and easier to manage.
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the TextField component. |
...props | TextFieldProps | - | Any additional props for the TextField component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the Label component. |
...props | LabelProps | - | Any additional props for the Label component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the FieldError component. |
...props | FieldErrorProps | - | Any additional props for the FieldError component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the ReactAriaInput component. |
...props | ReactAriaInputProps | - | Any additional props for the ReactAriaInput component. |
Name | Type | Default | Description |
---|---|---|---|
state | "default" | "isInvalid" | "isDisabled" | "default" | The state of the input field (default, invalid, or disabled). |
label | string | - | The label for the input field. |
isRequired | boolean | - | Whether the input field is required. |
isReadOnly | boolean | - | Whether the input field is read-only. |
errorMessage | string | - | The error message to display if the input is invalid. |
className | string | - | Additional classes to apply to the Field component. |
...props | InputProps (extends ReactAriaInputProps) | - | Any additional props for the Field component. |
Checkout the default documentation of React Aria Input
The Input Component with Icon on the left seamlessly combines a text input field with an adjacent icon, enhancing user interaction by providing visual cues and streamlined functionality
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the TextField component. |
...props | TextFieldProps | - | Any additional props for the TextField component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the Label component. |
...props | LabelProps | - | Any additional props for the Label component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the FieldError component. |
...props | FieldErrorProps | - | Any additional props for the FieldError component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the ReactAriaInput component. |
...props | ReactAriaInputProps | - | Any additional props for the ReactAriaInput component. |
Name | Type | Default | Description |
---|---|---|---|
state | "default" | "isInvalid" | "isDisabled" | "default" | The state of the input field (default, invalid, or disabled). |
label | string | - | The label for the input field. |
isRequired | boolean | - | Whether the input field is required. |
isReadOnly | boolean | - | Whether the input field is read-only. |
icon | React.ReactNode | - | An icon to display inside the input field. |
className | string | - | Additional classes to apply to the Field component. |
...props | InputProps (extends ReactAriaInputProps) | - | Any additional props for the Field component. |
Checkout the default documentation of React Aria Input
The Input Component with Icon on the Right seamlessly combines a text input field with an adjacent icon, enhancing user interaction by providing visual cues and streamlined functionality
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the TextField component. |
...props | TextFieldProps | - | Any additional props for the TextField component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the Label component. |
...props | LabelProps | - | Any additional props for the Label component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the FieldError component. |
...props | FieldErrorProps | - | Any additional props for the FieldError component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the ReactAriaInput component. |
...props | ReactAriaInputProps | - | Any additional props for the ReactAriaInput component. |
Name | Type | Default | Description |
---|---|---|---|
state | "default" | "isInvalid" | "isDisabled" | "default" | The state of the input field (default, invalid, or disabled). |
label | string | - | The label for the input field. |
isRequired | boolean | - | Whether the input field is required. |
isReadOnly | boolean | - | Whether the input field is read-only. |
icon | React.ReactNode | - | An icon to display inside the input field, positioned on the right. |
className | string | - | Additional classes to apply to the Field component. |
...props | InputProps (extends ReactAriaInputProps) | - | Any additional props for the Field component. |
Checkout the default documentation of React Aria Input
A floating label input component enhances form usability by animating the label to float above the input field when the field gains focus or contains text. The animation provides a smooth, modern interaction experience for users.
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the TextField component. |
...props | TextFieldProps | - | Any additional props for the TextField component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the Label component. |
...props | LabelProps | - | Any additional props for the Label component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the FieldError component. |
...props | FieldErrorProps | - | Any additional props for the FieldError component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the ReactAriaInput component. |
...props | ReactAriaInputProps | - | Any additional props for the ReactAriaInput component. |
Name | Type | Default | Description |
---|---|---|---|
state | "default" | "isInvalid" | "isDisabled" | "default" | The state of the input field (default, invalid, or disabled). |
label | string | - | The label for the input field, with animation effects. |
isRequired | boolean | - | Whether the input field is required. |
isReadOnly | boolean | - | Whether the input field is read-only. |
className | string | - | Additional classes to apply to the Field component. |
...props | InputProps (extends ReactAriaInputProps) | - | Any additional props for the Field component. |
Checkout the default documentation of React Aria Input
A toggle password input enhances usability by allowing users to reveal or conceal entered password characters with a simple interaction, such as clicking an icon. This feature improves user experience by providing flexibility to verify password accuracy before submission, while maintaining security by obscuring the password by default.
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the TextField component. |
...props | TextFieldProps | - | Any additional props for the TextField component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the Label component. |
...props | LabelProps | - | Any additional props for the Label component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the FieldError component. |
...props | FieldErrorProps | - | Any additional props for the FieldError component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the ReactAriaInput component. |
...props | ReactAriaInputProps | - | Any additional props for the ReactAriaInput component. |
Name | Type | Default | Description |
---|---|---|---|
state | "default" | "isInvalid" | "isDisabled" | "default" | The state of the input field (default, invalid, or disabled). |
label | string | - | The label for the input field, with animation effects. |
isRequired | boolean | - | Whether the input field is required. |
isReadOnly | boolean | - | Whether the input field is read-only. |
className | string | - | Additional classes to apply to the Field component. |
...props | InputProps (extends ReactAriaInputProps) | - | Any additional props for the Field component. |
Checkout the default documentation of React Aria Input
An input field with just a bottom line simplifies the appearance by removing side and top borders. It looks clean and modern, focusing on clarity and ease of use while fitting well with minimalist design styles.
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the TextField component. |
...props | TextFieldProps | - | Any additional props for the TextField component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the Label component. |
...props | LabelProps | - | Any additional props for the Label component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the ReactAriaInput component. |
...props | ReactAriaInputProps | - | Any additional props for the ReactAriaInput component. |
Name | Type | Default | Description |
---|---|---|---|
label | string | - | The label for the input field. |
isRequired | boolean | - | Whether the input field is required. |
isReadOnly | boolean | - | Whether the input field is read-only. |
className | string | - | Additional classes to apply to the Field component. |
...props | InputProps (extends ReactAriaInputProps) | - | Any additional props for the Field component. |
Checkout the default documentation of React Aria Input
An input field with just a bottom line simplifies the appearance by removing side and top borders. It looks clean and modern, focusing on clarity and ease of use while fitting well with minimalist design styles.
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the TextField component. |
...props | TextFieldProps | - | Any additional props for the TextField component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the Label component. |
...props | LabelProps | - | Any additional props for the Label component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the FieldError component. |
...props | FieldErrorProps | - | Any additional props for the FieldError component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the ReactAriaInput component. |
...props | ReactAriaInputProps | - | Any additional props for the ReactAriaInput component. |
Name | Type | Default | Description |
---|---|---|---|
state | "default" | "isInvalid" | "isDisabled" | "default" | The state of the input, which affects styling. |
label | string | - | The label for the input field. |
isRequired | boolean | - | Whether the input field is required. |
isReadOnly | boolean | - | Whether the input field is read-only. |
className | string | - | Additional classes to apply to the Field component. |
...props | InputProps (extends ReactAriaInputProps) | - | Any additional props for the Field component. |
This input component features a label positioned inside the input field itself. By placing the label within the input, it saves space in the UI and provides immediate context for the user. This design pattern can create a clean, modern look while maintaining clarity on the input's purpose.
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the TextField component. |
...props | TextFieldProps | - | Any additional props for the TextField component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the Label component. |
...props | LabelProps | - | Any additional props for the Label component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the ReactAriaInput component. |
...props | ReactAriaInputProps | - | Any additional props for the ReactAriaInput component. |
Name | Type | Default | Description |
---|---|---|---|
label | string | - | The label for the input field. |
isRequired | boolean | - | Whether the input field is required. |
isReadOnly | boolean | - | Whether the input field is read-only. |
className | string | - | Additional classes to apply to the Field component. |
...props | InputProps (extends ReactAriaInputProps) | - | Any additional props for the Field component. |
Checkout the default documentation of React Aria Input
This input component features a label positioned inside the input field itself. By placing the label within the input, it saves space in the UI and provides immediate context for the user. This design pattern can create a clean, modern look while maintaining clarity on the input's purpose.
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the TextField component. |
...props | TextFieldProps | - | Any additional props for the TextField component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the Label component. |
...props | LabelProps | - | Any additional props for the Label component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the ReactAriaInput component. |
...props | ReactAriaInputProps | - | Any additional props for the ReactAriaInput component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional classes to apply to the FieldError component. |
...props | FieldErrorProps | - | Any additional props for the FieldError component. |
Name | Type | Default | Description |
---|---|---|---|
state | "default" | "isInvalid" | "isDisabled" | "default" | The state of the input (default, invalid, or disabled). |
label | string | - | The label for the input field. |
isRequired | boolean | - | Whether the input field is required. |
isReadOnly | boolean | - | Whether the input field is read-only. |
className | string | - | Additional classes to apply to the Field component. |
...props | InputProps (extends ReactAriaInputProps) | - | Any additional props for the Field component. |
Checkout the default documentation of React Aria Input