Overview
TheTouchableHighlight component provides visual feedback by underlaying a color when pressed. Uniwind provides className prop support for styling this component.
Styling Convention
For
style props: Use regular Tailwind classes directly (e.g., className="p-4").For non-style props (like underlayColor): Use the accent- prefix (e.g., underlayColorClassName="accent-gray-200").Uniwind Bindings
Maps to the
style prop. Use any Tailwind utility classes.Maps to the
underlayColor prop. Requires accent- prefix for color values.State Selectors
TouchableHighlight supportsactive:, disabled:, and focus: state selectors:
| Selector | Trigger |
|---|---|
active: | When the component is being pressed |
disabled: | When the disabled prop is true |
focus: | When the component has focus (especially useful for TV navigation) |