How to use @pluralsight/ps-design-system-dropdown - 2 common examples

To help you get started, we’ve selected a few @pluralsight/ps-design-system-dropdown examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pluralsight / design-system / packages / site / pages / components / dropdown.js View on Github external
Dropdown

      <p>Install the component dependency:</p>
      <code>
        npm install @pluralsight/ps-design-system-dropdown
      </code>

      <p>Include a React component in your project:</p>
      <code>
        import Dropdown from '@pluralsight/ps-design-system-dropdown/react'
      </code>
      default,
            <span>
              visual style (from <code>Dropdown.appearances</code>)
            </span>
          ]),
          PropTypes.row([
            'disabled',
            'boolean',
            null,
            <code>false</code>,
            'standard input disabled flag'
          ]),
          PropTypes.row([
            'error',
            'boolean',
github pluralsight / design-system / packages / site / pages / components / dropdown.js View on Github external
'onChange',
            <span>(Event, value, label) =&gt; ()</span>,
            null,
            null,
            'triggered when an item selected'
          ]),
          PropTypes.row([
            'placeholder',
            'string',
            null,
            null,
            'in-field usage hint'
          ]),
          PropTypes.row([
            'size',
            PropTypes.union(Dropdown.sizes),
            null,
            <code>medium</code>,
            <span>
              horizontal icon placement (from <code>Dropdown.sizes</code>)
            </span>
          ]),
          PropTypes.row([
            'subLabel',
            'string',
            null,
            null,
            'supporting text or error messaging'
          ])
        ]}
      /&gt;
      <p></p>

@pluralsight/ps-design-system-dropdown

Design system components for dropdown

Apache-2.0
Latest version published 1 year ago

Package Health Score

52 / 100
Full package analysis

Similar packages