Show controlled example code for components #3250
Labels
status: awaiting triage
Automatically added to new issues. Should be removed once they have been triaged.
type: documentation
Improvements or additions to documentation
type: enhancement 💡
New feature or request
Area
UI Components, Documentation
The problem
Most interactive components doesn't have controlled examples. Although "How to use" tab sometimes showing some information about this (e.g. Dropdown) with props table, it's not something most users will actively navigate to.
The solution
Add appropriate example code to all interactive components that can be controlled
e.g. ToggleButtonGroup need to use
onChange={(e) => onChange(e.currentTarget.value)}
.Alternatives and examples
n/a
Are you a JPMorgan Chase & Co. employee?
The text was updated successfully, but these errors were encountered: