Skip to content

Drop Down

brandonk1234 edited this page Feb 23, 2017 · 2 revisions

DropDown

A dropDown component is used to select between different choices in a form styled way.

Props

The props needed for this component are listed and explained below:

  • icon - This prop must be a string.

  • text - This prop must be a string.

  • component - This prop must be a component. The dropDown component passes the component, a closeDropDown function which you can use as a prop to close the dropdown in your own component.

Example

<DropDown
	icon="menu"
	text="Click here to open dropdown" 
	component={
		<DropDownItems/>
	}
/>

Related