-
Notifications
You must be signed in to change notification settings - Fork 2
Drop Down
brandonk1234 edited this page Feb 23, 2017
·
2 revisions
A dropDown component is used to select between different choices in a form styled way.
The props needed for this component are listed and explained below:
-
icon
- This prop must be astring
. -
text
- This prop must be astring
. -
component
- This prop must be acomponent
. The dropDown component passes the component, a closeDropDown function which you can use as a prop to close the dropdown in your own component.
<DropDown
icon="menu"
text="Click here to open dropdown"
component={
<DropDownItems/>
}
/>