Optional icon prop for <SelectItem> component #1248
Replies: 4 comments
-
@schmitzc We don't have this feature for now. We'll consider your request. Thanks for the suggestion. |
Beta Was this translation helpful? Give feedback.
-
This enhancement require custom select on web for design consistency. Currently we are relying on native select on web which doesn't allow us to customised |
Beta Was this translation helpful? Give feedback.
-
Is there any workaround to achieve this? For example, creating your custom SelectItem and passing it the onValueChange callback or maybe a ref to invoke this onChangeValue until we can implement this? It would be nice to have this feature |
Beta Was this translation helpful? Give feedback.
-
Btw @schmitzc I was able to kinda fake what you were trying to achieve (adding an icon to the selected one) like this:
notice there is variable called |
Beta Was this translation helpful? Give feedback.
-
Description
Add an additional optional prop to
<SelectItem>
to include an icon.Problem Statement
My app has a dropdown that uses only icons for the item labels. I am using accessibility labels to ensure that the dropdown is still accessible.
Proposed Solution or API
I am using the React Native Dropdown Picker instead of the gluestack-ui Select component. It allows you to pass an icon as optional prop to the select item.
Alternatives
Is it possible to create a custom gluestack-ui component that can have an icon?
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions