MCPcopy Create free account
hub / github.com/adobe/react-spectrum / DialogTrigger

Function DialogTrigger

packages/@react-spectrum/s2/src/DialogTrigger.tsx:27–35  ·  view source on GitHub ↗
(props: DialogTriggerProps)

Source from the content-addressed store, hash-verified

25 * type and positioning of the Dialog.
26 */
27export function DialogTrigger(props: DialogTriggerProps): ReactNode {
28 return (
29 <AriaDialogTrigger {...props}>
30 {/* RAC sets isPressed via PressResponder when the dialog is open.
31 We don't want press scaling to appear to get "stuck", so override this. */}
32 <PressResponder isPressed={false}>{props.children}</PressResponder>
33 </AriaDialogTrigger>
34 );
35}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected