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

Function Example

stories/examples/ButtonDropdownMultiSplit.js:10–28  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

8} from 'reactstrap';
9
10function Example(props) {
11 const [dropdownOpen, setOpen] = useState(false);
12
13 const toggle = () => setOpen(!dropdownOpen);
14
15 return (
16 <ButtonDropdown isOpen={dropdownOpen} toggle={toggle}>
17 <Button id="caret">Click Me</Button>
18 <DropdownToggle split />
19 <DropdownMenu>
20 <DropdownItem header>Header</DropdownItem>
21 <DropdownItem disabled>Action</DropdownItem>
22 <DropdownItem>Another Action</DropdownItem>
23 <DropdownItem divider />
24 <DropdownItem>Another Action</DropdownItem>
25 </DropdownMenu>
26 </ButtonDropdown>
27 );
28}
29
30export 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…