DropDown
Usage
import { DropDown } from '@aragon/ui'
function App() {
const [selected, setSelected] = useState(0)
return (
<DropDown
items={['Wandering Thunder', 'Black Wildflower', 'Ancient Paper']}
selected={selected}
onChange={setSelected}
/>
)
}Demonstration

Props
header
headerTYPE
DEFAULT VALUE
items
itemsTYPE
DEFAULT VALUE
placeholder
TYPE
DEFAULT VALUE
renderLabel
TYPE
DEFAULT VALUE
Props
onChange(index, items)
TYPE
DEFAULT VALUE
Arguments
selected
TYPE
DEFAULT VALUE
wide
TYPE
DEFAULT VALUE
width
TYPE
DEFAULT VALUE
disabled
TYPE
DEFAULT VALUE
Last updated
Was this helpful?
