MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / Example

Function Example

stories/examples/Form/Form.js:4–88  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

2import { Button, Form, FormGroup, Label, Input, FormText } from 'reactstrap';
3
4function Example(props) {
5 return (
6 <Form>
7 <FormGroup>
8 <Label for="exampleEmail">Email</Label>
9 <Input
10 type="email"
11 name="email"
12 id="exampleEmail"
13 placeholder="with a placeholder"
14 />
15 </FormGroup>
16 <FormGroup>
17 <Label for="examplePassword">Password</Label>
18 <Input
19 type="password"
20 name="password"
21 id="examplePassword"
22 placeholder="password placeholder"
23 />
24 </FormGroup>
25 <FormGroup>
26 <Label for="exampleSelect">Select</Label>
27 <Input type="select" name="select" id="exampleSelect">
28 <option>1</option>
29 <option>2</option>
30 <option>3</option>
31 <option>4</option>
32 <option>5</option>
33 </Input>
34 </FormGroup>
35 <FormGroup>
36 <Label for="exampleSelectMulti">Select Multiple</Label>
37 <Input
38 type="select"
39 name="selectMulti"
40 id="exampleSelectMulti"
41 multiple
42 >
43 <option>1</option>
44 <option>2</option>
45 <option>3</option>
46 <option>4</option>
47 <option>5</option>
48 </Input>
49 </FormGroup>
50 <FormGroup>
51 <Label for="exampleText">Text Area</Label>
52 <Input type="textarea" name="text" id="exampleText" />
53 </FormGroup>
54 <FormGroup>
55 <Label for="exampleFile">File</Label>
56 <Input type="file" name="file" id="exampleFile" />
57 <FormText color="muted">
58 This is some placeholder block-level help text for the above input.
59 It&lsquo;s a bit lighter and easily wraps to a new line.
60 </FormText>
61 </FormGroup>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…