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

Function Example

stories/examples/Dropdown/DirectionKitchen.js:11–34  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

9const directions = ['up', 'down', 'end', 'start'];
10
11export default function Example(args) {
12 return (
13 <div className="d-flex p-5 justify-content-center">
14 {directions.map((direction) => (
15 <UncontrolledDropdown
16 direction={direction}
17 key={direction}
18 className="me-2"
19 >
20 <DropdownToggle caret color="primary">
21 {`Drop${direction}`}
22 </DropdownToggle>
23 <DropdownMenu>
24 <DropdownItem header>Header</DropdownItem>
25 <DropdownItem disabled>Action</DropdownItem>
26 <DropdownItem>Another Action</DropdownItem>
27 <DropdownItem divider />
28 <DropdownItem>Another Action</DropdownItem>
29 </DropdownMenu>
30 </UncontrolledDropdown>
31 ))}
32 </div>
33 );
34}
35
36Example.parameters = {
37 docs: {

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…