Skip to content

Select API

API reference docs for the React Select component. Learn about the props, CSS, and other APIs of this exported module.

Demos

For examples and details on the usage of this React component, visit the component demo pages:

Import

import Select from '@mui/joy/Select';
// or
import { Select } from '@mui/joy';
Learn about the difference by reading this guide on minimizing bundle size.

Props

action

autoFocus

color

component

defaultListboxOpen

defaultValue

disabled

endDecorator

getSerializedValue

indicator

listboxId

listboxOpen

name

onChange

onClose

onListboxOpenChange

placeholder

renderValue

required

size

slots

startDecorator

sx

value

variant

The ref is forwarded to the root element.

Theme default props

You can use JoySelect to change the default props of this component with the theme.


Slots

To learn how to customize the slot, check out the Overriding component structure guide.

root

button

startDecorator

endDecorator

indicator

listbox

CSS classes

These class names are useful for styling with CSS. They are applied to the root slot when specific states are triggered.

.Mui-disabledSTATE

.Mui-expandedSTATE

.Mui-focusVisibleSTATE

.MuiSelect-colorContext

.MuiSelect-colorDanger

.MuiSelect-colorNeutral

.MuiSelect-colorPrimary

.MuiSelect-colorSuccess

.MuiSelect-colorWarning

.MuiSelect-popper

.MuiSelect-sizeLg

.MuiSelect-sizeMd

.MuiSelect-sizeSm

.MuiSelect-variantOutlined

.MuiSelect-variantPlain

.MuiSelect-variantSoft

.MuiSelect-variantSolid