# Selects

The Select component is used for collecting user provided information from a list of options.

# Usage


# API

# 注意

# Examples

# Props

# Custom text and value

You can specify the specific properties within your items array correspond to the text and value fields. By default, this is text and value. In this example we also use the return-object prop which will return the entire object of the selected item on selection.

Custom items
Florida
Florida, FL

# Dense

You can use Dense prop to reduce the field height and lower max height of list items.

Loading...

# Basic

Applying the Disabled prop to a MSelect will prevent a user from interacting with the component.

Loading...

# Icon

Use a custom prepended or appended icon.

Loading...

# Light

A standard single select has a multitude of configuration options.

Loading...

# MenuProps

Custom props can be passed directly to MMenu using MenuProps prop. In this example menu is force directed to top and shifted to top.

Loading...

# Multiple

A multi-select can utilize MChip as the display for selected items.

Loading...

# Readonly

You can use the Readonly prop on MSelect which will prevent a user from changing its value.

Loading...

# Contents

# Append and prepend item

The MSelect components can be optionally expanded with prepended and appended items. This is perfect for customized select-all functionality.

Loading...

# Selection

The SelectionContent can be used to customize the way selected values are shown in the input. This is great when you want something like foo (+2 others) or don’t want the selection to occupy multiple lines.

Loading...

# Ready for more?

Continue your learning with related content selected by the Team or move between pages by using the navigation links below.

Edit this page on Github Compontents.Footer.Edit.End
Last updated: 3/28/2022 2:24:25 AM