(props)
| 2 | import { Form, FormGroup, Label, Input, FormText } from 'reactstrap'; |
| 3 | |
| 4 | function Example(props) { |
| 5 | const [value, setValue] = useState('Some plain text/ static value'); |
| 6 | return ( |
| 7 | <Form> |
| 8 | <FormGroup> |
| 9 | <Label for="exampleEmail">Plain Text (Static)</Label> |
| 10 | <Input |
| 11 | plaintext |
| 12 | value={value} |
| 13 | onChange={(e) => setValue(e.target.value)} |
| 14 | /> |
| 15 | </FormGroup> |
| 16 | <FormGroup> |
| 17 | <Label for="exampleEmail">Email</Label> |
| 18 | <Input |
| 19 | type="email" |
| 20 | name="email" |
| 21 | id="exampleEmail" |
| 22 | placeholder="with a placeholder" |
| 23 | /> |
| 24 | </FormGroup> |
| 25 | <FormGroup> |
| 26 | <Label for="examplePassword">Password</Label> |
| 27 | <Input |
| 28 | type="password" |
| 29 | name="password" |
| 30 | id="examplePassword" |
| 31 | placeholder="password placeholder" |
| 32 | /> |
| 33 | </FormGroup> |
| 34 | <FormGroup> |
| 35 | <Label for="exampleUrl">Url</Label> |
| 36 | <Input |
| 37 | type="url" |
| 38 | name="url" |
| 39 | id="exampleUrl" |
| 40 | placeholder="url placeholder" |
| 41 | /> |
| 42 | </FormGroup> |
| 43 | <FormGroup> |
| 44 | <Label for="exampleNumber">Number</Label> |
| 45 | <Input |
| 46 | type="number" |
| 47 | name="number" |
| 48 | id="exampleNumber" |
| 49 | placeholder="number placeholder" |
| 50 | /> |
| 51 | </FormGroup> |
| 52 | <FormGroup> |
| 53 | <Label for="exampleDatetime">Datetime</Label> |
| 54 | <Input |
| 55 | type="datetime" |
| 56 | name="datetime" |
| 57 | id="exampleDatetime" |
| 58 | placeholder="datetime placeholder" |
| 59 | /> |
| 60 | </FormGroup> |
| 61 | <FormGroup> |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…