Sha256: a913c80e0ba296bf9a21557c7ab52a22db08cbbacdccf874f9fbef3ee235d2ac
Contents?: true
Size: 632 Bytes
Versions: 948
Compression:
Stored size: 632 Bytes
Contents
import React from 'react' import { Dropdown } from 'playbook-ui' 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
948 entries across 948 versions & 2 rubygems