[Chip] Add "selected" prop
See original GitHub issue- I have searched the issues of this repository and believe that this is not a duplicate.
Expected Behavior
Chip
should have an active
prop to set the Chip
to be visually active or not.
Current Behavior
Currently, the only way to make a Chip
active is to click on it with onClick
set.
Steps to Reproduce (for bugs)
Context
Your Environment
Tech | Version |
---|---|
Material-UI | beta.36 |
React | 16.2.0 |
browser | |
etc |
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:9 (8 by maintainers)
Top Results From Across the Web
[Chip] Add "selected" prop · Issue #10610 · mui/material-ui
I have searched the issues of this repository and believe that this is not a duplicate. Expected Behavior Chip should have an active...
Read more >React Chip component - Material UI - MUI
Chips with the onClick prop defined change appearance on focus, hover, and click. Chips with the onDelete prop defined will display a delete...
Read more >reactjs - Select with chip input not displaying the selected value
Your Chips don't have children, so nothing is displayed. You can customize this behavior by specifying the renderValue property on Select .
Read more >Chips | Angular Material
Use <mat-chip-listbox> and <mat-chip-option> for selecting one or many items ... If the user may select more than one option, add the multiple...
Read more >Chip component — Vuetify
In selects. Selects can use chips to display the selected data. Try adding your own tags below.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@vicasas It will need to support all the colors. But it’s for post v5, we shouldn’t work on it now.
You need to get a DOM reference to the element and to focus it.
This documentation section can help too: https://material-ui-next.com/getting-started/faq/#how-can-i-access-the-dom-element-.