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

Function Example

stories/examples/Card/ImageCaps.js:4–47  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

2import { Card, CardBody, CardTitle, CardText, CardImg } from 'reactstrap';
3
4function Example(props) {
5 return (
6 <>
7 <Card className="my-2">
8 <CardImg
9 top
10 width="100%"
11 src="https://picsum.photos/900/180"
12 alt="Card image cap"
13 style={{ height: 180 }}
14 />
15 <CardBody>
16 <CardTitle tag="h5">Card Title</CardTitle>
17 <CardText>
18 This is a wider card with supporting text below as a natural lead-in
19 to additional content. This content is a little bit longer.
20 </CardText>
21 <CardText>
22 <small className="text-muted">Last updated 3 mins ago</small>
23 </CardText>
24 </CardBody>
25 </Card>
26 <Card className="my-2">
27 <CardBody>
28 <CardTitle tag="h5">Card Title</CardTitle>
29 <CardText>
30 This is a wider card with supporting text below as a natural lead-in
31 to additional content. This content is a little bit longer.
32 </CardText>
33 <CardText>
34 <small className="text-muted">Last updated 3 mins ago</small>
35 </CardText>
36 </CardBody>
37 <CardImg
38 bottom
39 width="100%"
40 src="https://picsum.photos/900/180"
41 alt="Card image cap"
42 style={{ height: 180 }}
43 />
44 </Card>
45 </>
46 );
47}
48
49export default Example;
50

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…