BassDrop

bassdrop

🔊 bassdrop
bassdrop logo

a downshift powered dropdown library for react vr



new BassDrop()

Extends Component

Props

Props

Type: object

Properties
placeholder (string?) : The string to show when no item is selected/highlighted
children (function?) : Is called with the StateAndHelpers of bassdrop.
render (function?) : Is called with the StateAndHelpers of bassdrop.

StateAndHelpers

bassdrop's prop getters are exposed as a parameter to the render prop. For further documentation on downshift, see https://github.com/paypal/downshift.

StateAndHelpers

Type: object

Properties
getRootProps (function) : prop getter - Sets the root props for the root container and sets suppressRefError=true.
getToggleButtonProps (function) : prop getter - returns the props to be applied to the VrButton that toggles bassdrop open.
selectedItemIsHighlighted (boolean) : state - whether or not the selected item is highlighted.
itemDisplay (string) : state - either the selected value, the highlighted value, or the placeholder prop value.