You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(Button,DropdownToggle): default to secondary style, remove cloning (#120)
* refactor(DropdownToggle): remove cloning, default to Button as tag
* refactor(Button): default to secondary style
* docs(Dropdown): update based on component changes
BREAKING CHANGE: DropdownToggle no longer clones each element in props.children when it’s an array, instead it renders props.children inside a single component (Butt
BREAKING CHANGE: Button color now defaults to “secondary”. This behavior aligns with DropdownToggle color default.
Closes#98
The <code>Dropdown</code> component is used to pass the <code>isOpen</code>&<code>toggle</code> props via context to the following components: <code>DropdownToggle</code>, <code>DropdownMenu</code>. The <code>DropdownToggle</code> uses the <code>Button</code> component internally, meaning it also accepts all the props the <Linkto="/components/buttons/">Button component</Link> accepts.
38
+
</p>
39
+
<h4>Advanced Positioning</h4>
40
+
<p>
41
+
The <code>DropdownMenu</code> can automatically be flipped (dropup vs dropdown) according to space available in the viewport by passing the <code>tether</code> prop to Dropdown <code>{`<Dropdown tether />`}</code>. For full customization, an object with <ahref="http://tether.io/#options">Tether options</a> can be used instead.
0 commit comments