The selectable component allows you to wrap any non-interactive UI component to make it selectable.
||A callback to be performed when the selectable component is pressed.|
||Whether the selectable component is disabled.|
- Selectable is intended to be used along with non-interactive components like
- Interactive components like
<TextField>, or any other component that accepts
onPresscallbacks, have their own built-in interactions. Wrapping these components in selectable might potentially break their intended behavior.
- It is recommended to provide a visual clue to the non-interactive component so it appears as interactive. For example, you could set a
"TextInteractive"value so that the users can identify this element as being interactive.