JSPM

@hawk-ui/dropdown

2.5.5
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 29
    • Score
      100M100P100Q74887F
    • License MIT

    hawk-ui: Basic Dropdown Component

    Package Exports

    • @hawk-ui/dropdown

    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 (@hawk-ui/dropdown) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Basic Dropdown Usage:

    const suggestions = [
      {title: 'Action', value: 'action'},
      {title: 'Another action', value: 'another action'},
      {title: 'Something else here', value: 'something else here'},
    ];
    
    <div className="styleguidist__btns-wrap">
      <Dropdown
        title="Dropdown"
        isIcon
        suggestions={suggestions}
        renderSuggestion={(suggestion) => suggestion.title}
        selectValue={(meta, item) => { console.log(meta, item); }}
      />
    </div>