M
M
Mad Coder2020-07-06 15:18:08
React
Mad Coder, 2020-07-06 15:18:08

How to style Autocomplete in React Material UI?

Material UI has a multi-select component with checkboxes. At the same time, Chip components appear.
5f03164a943e3519214576.png
How to make the selection field not have a bunch of values, but for example "Selected 5 out of 23", how to change the output of the selected elements. Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2020-07-07
@polyak-y

Select has a renderValue prop that allows you to display a custom value in the select field, i.e. just what you need.
Here is an example: https://codesandbox.io/s/material-demo-zegwq

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question