Input
An Input component is a user interface element that allows users to enter data, such as text, numbers, or selections. It typically includes various types, such as text fields, checkboxes, radio buttons, and dropdowns, providing flexibility for different data types. Input components are essential for forms and interactive applications, enabling users to submit information effectively and efficiently.
# Demo
Demo Coming Soon
Input examples will be available soon.
# Usage
# Attributes
Name | Type | Default | Details |
---|---|---|---|
id | string | Optional | You can pass id to create unique identifier. |
label | React.ReactNode | Optional | Label for the input field. |
labelClassName | string | ' ' | You can customise by passing tailwind classes. |
inputClassName | string | ' ' | You can customise by passing tailwind classes. |
wrapperClassName | string | ' ' | You can customise wrapper by passing tailwind classes. |
error | React.ReactNode | Optional | Error message to display. |
helperText | React.ReactNode | Optional | Helper text to display. |
onChange | (e: React.ChangeEvent<HTMLInputElement>) => void | Optional | Change event handler. |
# Tags