You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the API for the Option prop is expanding in our select-like components. For example, we added support for endAdornment and startAdornment, which is not an elegant solution and can result in an explosion of props.
Proposed solution
To address this, we can enhance the way options are passed to select-like components in two ways:
1. Simple usage: You can pass options as { label: string, value: string }.
2. Advanced usage: You can utilize the composition API as follows:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
What I'm trying to achieve
Currently, the API for the
Option
prop is expanding in our select-like components. For example, we added support forendAdornment
and startAdornment
, which is not an elegant solution and can result in an explosion of props.Proposed solution
To address this, we can enhance the way options are passed to select-like components in two ways:
1. Simple usage: You can pass options as
{ label: string, value: string }
.2. Advanced usage: You can utilize the composition API as follows:
The text was updated successfully, but these errors were encountered: