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

Function Example

stories/examples/UncontrolledAccordion.js:9–46  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

7} from 'reactstrap';
8
9function Example(props) {
10 return (
11 <div>
12 <UncontrolledAccordion defaultOpen="1">
13 <AccordionItem>
14 <AccordionHeader targetId="1">Accordion Item 1</AccordionHeader>
15 <AccordionBody accordionId="1">
16 <strong>This is the first item&lsquo;s accordion body.</strong>
17 You can modify any of this with custom CSS or overriding our default
18 variables. It&lsquo;s also worth noting that just about any HTML can
19 go within the <code>.accordion-body</code>, though the transition
20 does limit overflow.
21 </AccordionBody>
22 </AccordionItem>
23 <AccordionItem>
24 <AccordionHeader targetId="2">Accordion Item 2</AccordionHeader>
25 <AccordionBody accordionId="2">
26 <strong>This is the second item&lsquo;s accordion body.</strong>
27 You can modify any of this with custom CSS or overriding our default
28 variables. It&lsquo;s also worth noting that just about any HTML can
29 go within the <code>.accordion-body</code>, though the transition
30 does limit overflow.
31 </AccordionBody>
32 </AccordionItem>
33 <AccordionItem>
34 <AccordionHeader targetId="3">Accordion Item 3</AccordionHeader>
35 <AccordionBody accordionId="3">
36 <strong>This is the third item&lsquo;s accordion body.</strong>
37 You can modify any of this with custom CSS or overriding our default
38 variables. It&lsquo;s also worth noting that just about any HTML can
39 go within the <code>.accordion-body</code>, though the transition
40 does limit overflow.
41 </AccordionBody>
42 </AccordionItem>
43 </UncontrolledAccordion>
44 </div>
45 );
46}
47
48export default Example;

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…