Sha256: 5052ee296e764a3880b084fb2c4bec23acba56b0e778c2cf1445eecdbc0da492
Contents?: true
Size: 626 Bytes
Versions: 102
Compression:
Stored size: 626 Bytes
Contents
import React from 'react' import { Dropdown } from '../..' const DropdownDefault = (props) => { const options = [ { label: "United States", value: "United States", }, { label: "Canada", value: "Canada", }, { label: "Pakistan", value: "Pakistan", } ]; return ( <div> <Dropdown label="Select a Country" options={options} {...props} > {options.map((option) => ( <Dropdown.Option key={option.id} option={option} /> ))} </Dropdown> </div> ) } export default DropdownDefault
Version data entries
102 entries across 102 versions & 2 rubygems