JSPM

  • Created
  • Published
  • Downloads 17281
  • Score
    100M100P100Q160534F
  • License MIT

Package Exports

  • @s-ui/react-molecule-dropdown-option
  • @s-ui/react-molecule-dropdown-option/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@s-ui/react-molecule-dropdown-option) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

MoleculeDropdownOption

MoleculeDropdownOption is a component that wraps a composition of checkbox + text.

documentation issue npm

Issues open NPM

Installation

$ npm install @s-ui/react-molecule-dropdown-option --save

Usage

Basic usage

import MoleculeDropdownOption from '@s-ui/react-molecule-dropdown-option'

return (
  <MoleculeDropdownOption value="option1">
    Option 1
  </MoleculeDropdownOption>
)

With checkbox

import MoleculeDropdownOption from '@s-ui/react-molecule-dropdown-option'

return (
  <MoleculeDropdownOption value="option1" checkbox>
    Option 1
  </MoleculeDropdownOption>
)

With disabled

import MoleculeDropdownOption from '@s-ui/react-molecule-dropdown-option'

return (
  <MoleculeDropdownOption value="option1" disabled>
    Option 1
  </MoleculeDropdownOption>
)

Find full description and more examples in the demo page.