PopoverTriggerProps
Extends
ComponentProps<typeofPressable>
Properties
allowTextSelectionOnPress?
optionalallowTextSelectionOnPress:boolean
Whether text selection should be enabled on the pressable element.
Inherited from
ComponentProps.allowTextSelectionOnPress
children
children:
ReactElement<DOMAttributes<FocusableElement>,string>
Inherited from
ComponentProps.children
isDisabled?
optionalisDisabled:boolean
Whether the press events should be disabled.
Inherited from
ComponentProps.isDisabled
isPressed?
optionalisPressed:boolean
Whether the target is in a controlled press state (e.g. an overlay it triggers is open).
Inherited from
ComponentProps.isPressed
key?
optionalkey:Key|null
Inherited from
ComponentProps.key
onClick()?
optionalonClick: (e) =>void
Not recommended – use onPress instead. onClick is an alias for onPress
provided for compatibility with other libraries. onPress provides
additional event details for non-mouse interactions.
Parameters
e
MouseEvent<FocusableElement>
Returns
void
Inherited from
ComponentProps.onClick
onPress()?
optionalonPress: (e) =>void
Handler that is called when the press is released over the target.
Parameters
e
PressEvent
Returns
void
Inherited from
ComponentProps.onPress
onPressChange()?
optionalonPressChange: (isPressed) =>void
Handler that is called when the press state changes.
Parameters
isPressed
boolean
Returns
void
Inherited from
ComponentProps.onPressChange
onPressEnd()?
optionalonPressEnd: (e) =>void
Handler that is called when a press interaction ends, either over the target or when the pointer leaves the target.
Parameters
e
PressEvent
Returns
void
Inherited from
ComponentProps.onPressEnd
onPressStart()?
optionalonPressStart: (e) =>void
Handler that is called when a press interaction starts.
Parameters
e
PressEvent
Returns
void
Inherited from
ComponentProps.onPressStart
onPressUp()?
optionalonPressUp: (e) =>void
Handler that is called when a press is released over the target, regardless of whether it started on the target or not.
Parameters
e
PressEvent
Returns
void
Inherited from
ComponentProps.onPressUp
preventFocusOnPress?
optionalpreventFocusOnPress:boolean
Whether the target should not receive focus on press.
Inherited from
ComponentProps.preventFocusOnPress
ref?
optionalref:Ref<FocusableElement>
Allows getting a ref to the component instance.
Once the component unmounts, React will set ref.current to null
(or call the ref with null if you passed a callback ref).
See
Inherited from
ComponentProps.ref
shouldCancelOnPointerExit?
optionalshouldCancelOnPointerExit:boolean
Whether press events should be canceled when the pointer leaves the target while pressed.
By default, this is false, which means if the pointer returns back over the target while
still pressed, onPressStart will be fired again. If set to true, the press is canceled
when the pointer leaves the target and onPressStart will not be fired if the pointer returns.
Inherited from
ComponentProps.shouldCancelOnPointerExit