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

Function Example

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

Source from the content-addressed store, hash-verified

2import { Toast, ToastBody, ToastHeader } from 'reactstrap';
3
4function Example(props) {
5 return (
6 <div>
7 <div className="p-3 my-2 rounded">
8 <Toast>
9 <ToastHeader>Reactstrap</ToastHeader>
10 <ToastBody>
11 This is a toast on a white background — check it out!
12 </ToastBody>
13 </Toast>
14 </div>
15 <div className="p-3 my-2 rounded bg-docs-transparent-grid">
16 <Toast>
17 <ToastHeader>Reactstrap</ToastHeader>
18 <ToastBody>
19 This is a toast on a gridded background — check it out!
20 </ToastBody>
21 </Toast>
22 </div>
23 <div className="p-3 bg-primary my-2 rounded">
24 <Toast>
25 <ToastHeader>Reactstrap</ToastHeader>
26 <ToastBody>
27 This is a toast on a primary background — check it out!
28 </ToastBody>
29 </Toast>
30 </div>
31 <div className="p-3 bg-secondary my-2 rounded">
32 <Toast>
33 <ToastHeader>Reactstrap</ToastHeader>
34 <ToastBody>
35 This is a toast on a secondary background — check it out!
36 </ToastBody>
37 </Toast>
38 </div>
39 <div className="p-3 bg-success my-2 rounded">
40 <Toast>
41 <ToastHeader>Reactstrap</ToastHeader>
42 <ToastBody>
43 This is a toast on a success background — check it out!
44 </ToastBody>
45 </Toast>
46 </div>
47 <div className="p-3 bg-danger my-2 rounded">
48 <Toast>
49 <ToastHeader>Reactstrap</ToastHeader>
50 <ToastBody>
51 This is a toast on a danger background — check it out!
52 </ToastBody>
53 </Toast>
54 </div>
55 <div className="p-3 bg-warning my-2 rounded">
56 <Toast>
57 <ToastHeader>Reactstrap</ToastHeader>
58 <ToastBody>
59 This is a toast on a warning background — check it out!
60 </ToastBody>
61 </Toast>

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…