Skip to main content

Pivotal UI

v18.0.0

Select

Use the select element when the user can choose a single option out of a set of possible options.

Sizing

Set heights using the CSS classes .input-lg and .input-sm. Create larger or smaller form controls that match button sizes.

In React, a select can be given value and onChange props to make it a controlled component.

Controlled React component
ReferenceError: React is not defined

Props

The native HTML select takes standard HTML attributes as props. Read more about the select element.

Imports

Import CSS:

import 'pivotal-ui/css/select';