# Function: useGateTrigger()

```typescript
export function useGateTrigger(): GateContextValue
```

Defined in: [components/Gate.tsx:28](https://github.com/plandalf/numi/blob/fc6f42b5ade3d63b71623934838a6509f17203e2/packages/react/src/components/Gate.tsx#L28)

Use inside a Gate's `fallback` to get the trigger that opens the paywall.

```tsx
function UpgradePrompt() {
  const { trigger, checking } = useGateTrigger();
  return <button disabled={checking} onClick={() => trigger()}>Upgrade</button>;
}
```

## Returns

[`GateContextValue`](https://plandalf.com/docs/packages/react/referenced-types/GateContextValue)

Source: https://plandalf.com/docs/packages/react/functions/useGateTrigger
