terra-form
Version:
Components for building forms
8 lines • 640 B
Markdown
## Input Props Table
| Prop Name | Type | Is Required | Default Value | Description |
|-|-|-|-|-|
| defaultValue| `string or number`| optional| `undefined`| The defaultValue of the input field. Use this to create an uncontrolled input.|
| name| `string`| optional| `null`| Name of the input.|
| onChange| `func`| optional| `undefined`| Function to trigger when user changes the input value. Provide a function to create a controlled input.|
| required| `bool`| optional| `false`| Whether the input is required or not.|
| value| `string or number`| optional| `undefined`| The value of the input field. Use this to create a controlled input.|