Cursor
Sets the mouse cursor texture when an element is hovered. Compatible with CSS syntax.
Valid values are:
- A named cursor:
default
,none
,pointer
etc. - An image with hotspot offset:
url(res:myCursorImage) 12 6
export default function App() { return <> Hover the boxes to see cursor <view className="items"> <view style={{ cursor: 'pointer' }} /> <view style={{ cursor: 'none' }} /> <view style={{ cursor: 'move' }} /> <view style={{ cursor: 'url(res:ReactUnity/sprites/check) 5 5' }} /> </view> </>; }