|
Download tabler-react/src/components/Form/FormInput.examples.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 633 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Form/FormInput.examples.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Form/FormInput.examples.md
-
curl -L -o FormInput.examples.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Form/FormInput.examples.md
633 Bytes
| ```jsx | |
| <Form.Input name='username' placeholder='Username' /> | |
| ``` | |
| #### Input Label | |
| Render an input wrapped in a Form.Group with a Label | |
| ```jsx | |
| <Form.Input label='username' placeholder='Username' /> | |
| ``` | |
| is the same as | |
| ```jsx | |
| <Form.Group> | |
| <Form.Label>Username</Form.Label> | |
| <Form.Input placeholder="Username" /> | |
| </Form.Group> | |
| ``` | |
| #### Input Icons | |
| ```jsx | |
| <Form.Group label="Input Icon"> | |
| <Form.Input icon="user" placeholder="Username" /> | |
| </Form.Group> | |
| ``` | |
| #### Append the Icon | |
| ```jsx | |
| <Form.Group label="Input Icon"> | |
| <Form.Input | |
| icon="search" | |
| placeholder="Search for..." | |
| position="append" | |
| /> | |
| </Form.Group> | |
| ``` | |