Props
Accessibility
Ready
Localization
TapAreas with link role announce to assistive technologies that the link opens in a new tab when setting target to 'blank'. Localize the default label with DefaultLabelProvider. Learn more
Variants
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
Inline usage
While TapArea doesn't provide an inline
prop, this behavior can be achieved by wrapping with <Box display="inlineBlock">
.
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
Component quality checklist
Quality item | Status | Status description |
---|---|---|
Figma Library | Component is not currently available in Figma. | |
Responsive Web | Ready | Component is available in code for web and mobile web. |
iOS | Component is not currently available in code for iOS. | |
Android | Component is not currently available in code for Android. |
Related
OnLinkNavigationProvider
OnLinkNavigationProvider allows external link navigation control across all children components with link behavior.