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

Method render

types/reactstrap-tests.tsx:1417–1516  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1415// ------------------ Form
1416class Example45 extends React.Component {
1417 render() {
1418 return (
1419 <Form>
1420 <FormGroup>
1421 <Label for="exampleEmail">Email</Label>
1422 <Input
1423 type="email"
1424 name="email"
1425 id="exampleEmail"
1426 placeholder="with a placeholder"
1427 />
1428 </FormGroup>
1429 <FormGroup>
1430 <Label for="examplePassword">Password</Label>
1431 <Input
1432 type="password"
1433 name="password"
1434 id="examplePassword"
1435 placeholder="password placeholder"
1436 />
1437 </FormGroup>
1438 <FormGroup>
1439 <Label for="exampleSelect">Select</Label>
1440 <Input type="select" name="select" id="exampleSelect">
1441 <option>1</option>
1442 <option>2</option>
1443 <option>3</option>
1444 <option>4</option>
1445 <option>5</option>
1446 </Input>
1447 </FormGroup>
1448 <FormGroup>
1449 <Label for="exampleSelectMulti">Select Multiple</Label>
1450 <Input
1451 type="select"
1452 name="selectMulti"
1453 id="exampleSelectMulti"
1454 multiple
1455 >
1456 <option>1</option>
1457 <option>2</option>
1458 <option>3</option>
1459 <option>4</option>
1460 <option>5</option>
1461 </Input>
1462 </FormGroup>
1463 <FormGroup>
1464 <Label for="exampleText">Text Area</Label>
1465 <Input type="textarea" name="text" id="exampleText" />
1466 </FormGroup>
1467 <FormGroup>
1468 <Label for="exampleFile">File</Label>
1469 <Input type="file" name="file" id="exampleFile" />
1470 <FormText color="muted">
1471 This is some placeholder block-level help text for the above input.
1472 It's a bit lighter and easily wraps to a new line.
1473 </FormText>
1474 </FormGroup>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected