TapArea
TapArea allows components to be clickable and touchable in an accessible way
Props
Basic TapArea
If you have a Link
or Button
inside of TapArea, you can apply e.stopPropagation()
so the onTap
doesn't get triggered.
TapArea with link interaction can be paired with OnLinkNavigationProvider. See OnLinkNavigationProvider to learn more about link navigation.
Roles & Compress Behavior
Height & Width
Mouse Cursor
mouseCursor="copy"
copy
mouseCursor="grab"
grab
mouseCursor="grabbing"
grabbing
mouseCursor="move"
move
mouseCursor="noDrop"
noDrop
mouseCursor="pointer"
pointer
mouseCursor="zoomIn"
zoomIn
mouseCursor="zoomOut"
zoomOut
Rounding
rounding={0}
0
rounding={1}
1
rounding={2}
2
rounding={3}
3
rounding={4}
4
rounding={5}
5
rounding={6}
6
rounding={7}
7
rounding={8}
8
rounding="circle"
circle
rounding="pill"
pill
ref
Accessibility: label, controls, expanded, & popup
Related
OnLinkNavigationProvider
OnLinkNavigationProvider allows external link navigation control across all children components with link behavior.