2020-09-25 04:40:38 -04:00
|
|
|
import React from 'react'
|
2021-06-18 05:29:06 -04:00
|
|
|
import { Dropdown, MenuItem } from 'react-bootstrap'
|
|
|
|
import ControlledDropdown from '../js/shared/components/controlled-dropdown'
|
2020-09-25 04:40:38 -04:00
|
|
|
|
|
|
|
export const Customized = args => {
|
|
|
|
return (
|
2021-06-18 05:29:06 -04:00
|
|
|
<ControlledDropdown
|
2021-04-28 04:46:39 -04:00
|
|
|
pullRight={args.pullRight}
|
|
|
|
defaultOpen={args.defaultOpen}
|
|
|
|
id="dropdown-story"
|
|
|
|
>
|
2020-09-25 04:40:38 -04:00
|
|
|
<Dropdown.Toggle
|
|
|
|
noCaret={args.noCaret}
|
|
|
|
className={args.className}
|
|
|
|
bsStyle={args.bsStyle}
|
|
|
|
>
|
|
|
|
{args.title}
|
|
|
|
</Dropdown.Toggle>
|
|
|
|
<Dropdown.Menu>
|
2021-06-18 05:29:06 -04:00
|
|
|
<MenuItem eventKey="1">Action</MenuItem>
|
|
|
|
<MenuItem eventKey="2">Another action</MenuItem>
|
|
|
|
<MenuItem eventKey="3" active>
|
|
|
|
Active Item
|
|
|
|
</MenuItem>
|
|
|
|
<MenuItem divider />
|
|
|
|
<MenuItem eventKey="4">Separated link</MenuItem>
|
2020-09-25 04:40:38 -04:00
|
|
|
</Dropdown.Menu>
|
2021-06-18 05:29:06 -04:00
|
|
|
</ControlledDropdown>
|
2020-09-25 04:40:38 -04:00
|
|
|
)
|
|
|
|
}
|
|
|
|
Customized.args = {
|
2021-04-27 03:52:58 -04:00
|
|
|
title: 'Toggle & Menu used separately',
|
2020-09-25 04:40:38 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'Dropdown',
|
2021-06-18 05:29:06 -04:00
|
|
|
component: ControlledDropdown,
|
|
|
|
args: {
|
|
|
|
bsStyle: 'default',
|
|
|
|
title: 'Dropdown',
|
|
|
|
pullRight: false,
|
|
|
|
noCaret: false,
|
|
|
|
className: '',
|
|
|
|
defaultOpen: true,
|
|
|
|
},
|
2020-09-25 04:40:38 -04:00
|
|
|
}
|