ComponentsPressable
Pressable
Pressable handles press interactions across mouse, touch, keyboard, and screen readers.
Pressable handles press interactions across mouse, touch, keyboard, and screen readers.
Prop | Type | Default |
---|---|---|
allowTextSelectionOnPress | boolean | |
asChild | boolean | |
cancelOnPointerExit | boolean | |
dir | 'ltr' | 'rtl' | "ltr" |
disabled | boolean | |
getRootNode | () => ShadowRoot | Node | Document | |
id | string | |
longPressDelay | number | |
onLongPress | (event: PressEvent) => void | |
onPress | (event: PressEvent) => void | |
onPressEnd | (event: PressEvent) => void | |
onPressStart | (event: PressEvent) => void | |
onPressUp | (event: PressEvent) => void | |
preventFocusOnPress | boolean |
Prop | Type | Default |
---|---|---|
allowTextSelectionOnPress | boolean | |
cancelOnPointerExit | boolean | |
dir | 'ltr' | 'rtl' | "ltr" |
disabled | boolean | |
getRootNode | () => ShadowRoot | Node | Document | |
id | string | |
longPressDelay | number | |
onLongPress | (event: PressEvent) => void | |
onPress | (event: PressEvent) => void | |
onPressEnd | (event: PressEvent) => void | |
onPressStart | (event: PressEvent) => void | |
onPressUp | (event: PressEvent) => void | |
preventFocusOnPress | boolean |