Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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',
'onChange',
<span>(Event, value, label) => ()</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'
])
]}
/>
<p></p>