Sha256: 251973b59accc3f144a4e70b66c20621c0390dee3d292778a010128fc56021b2

Contents?: true

Size: 490 Bytes

Versions: 26

Compression:

Stored size: 490 Bytes

Contents

import React from 'react'
import { Dropdown } from '../../'

const DropdownDefaultValue = (props) => {
  const options = [
    {
      label: "United States",
      value: "United States",
    },
    {
      label: "Canada",
      value: "Canada",
    },
    {
      label: "Pakistan",
      value: "Pakistan",
    }
  ];  

  return (
  <>
    <Dropdown
        defaultValue={options[2]}
        options={options}
        {...props}
    />
  </>
  )
}

export default DropdownDefaultValue

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
playbook_ui-13.33.0.pre.alpha.PBNTR405dropdownformfixesrails3311 app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.jsx
playbook_ui_docs-13.33.0.pre.alpha.PLAY1454formpillicons3309 app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.jsx
playbook_ui-13.33.0.pre.alpha.PLAY1454formpillicons3309 app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.jsx
playbook_ui-13.33.0 app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.jsx
playbook_ui_docs-13.32.0.pre.alpha.PBNTR405dropdownformfixesrails3301 app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.jsx
playbook_ui-13.32.0.pre.alpha.PBNTR405dropdownformfixesrails3301 app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.jsx