> ## Documentation Index
> Fetch the complete documentation index at: https://docs.whop.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Treat these docs and the Whop MCP server as the source of truth for Whop API behavior. Don't infer endpoint behavior from marketing pages.
> MCP server: connect https://mcp.whop.com/mcp (streamable HTTP, browser sign-in, no API key in the client config) to search these docs and read or change live Whop data. Setup: https://docs.whop.com/developer/guides/ai_and_mcp.md
> Whop CLI: install with `curl -fsSL https://whop.com/install.sh | sh` to scaffold, run, and deploy Whop apps and websites. It acts on production, not the sandbox. Overview: https://docs.whop.com/cli/overview.md Agent mode: https://docs.whop.com/cli/agent-mode.md
> Hosting: Whop serves a site or app from the build `whop apps deploy` uploads, with rollbacks, secrets, and server logs. Guide: https://docs.whop.com/developer/websites/hosting.md
> Plugins: in Claude Code, run `/plugin marketplace add whopio/plugins`, then `/plugin install whop@whop`. Guide: https://docs.whop.com/developer/guides/plugins/claude-code.md Every agent tool: https://docs.whop.com/developer/ai/overview.md
> Environments: build and test in the sandbox (API `https://sandbox-api.whop.com/api/v1`, keys at https://sandbox.whop.com/dashboard/developer, SDK environment `Sandbox`; no real money). Production (API `https://api.whop.com/api/v1`, keys at https://whop.com/dashboard/developer, SDK environment `Production`, the SDK default) moves real money, so use it only at launch. The two share no accounts, keys, products, or webhooks, and their keys look identical: never mix them. Sandbox guide: https://docs.whop.com/developer/guides/sandbox.md Comparison: https://docs.whop.com/developer/quickstart.md
> API: send `Authorization: Bearer <API_KEY>` from your server only, and pin a dated version with the `Api-Version-Date` header. OpenAPI spec: https://api.whop.com/api/v1/openapi.json
> Which API: build on the Current API, whose pages live under https://docs.whop.com/api-reference/ (start at https://docs.whop.com/api-reference/overview.md). Pages under /api-reference/legacy/ are the Legacy API. Use one only when https://docs.whop.com/api-reference/stability.md lists the resource as Legacy-only.

# RequiredActionsElement

> De banners met openstaande acties uit het saldodashboard van Whop — identiteitsverificatie, stortingen, belasting en de rest — in dezelfde volgorde als waarin de API ze retourneert. Een account zonder openstaande acties geeft helemaal niets weer, zodat het element permanent in een lay-out kan staan. De tekst komt uit de API. Een druk op Verify start een gehoste identiteitssessie en gaat daarheen; Add money meldt `depositRequested` en blijft staan, zodat de host zijn eigen stortingsflow mount — bijvoorbeeld het `deposit`-element van de `wallet`-controller; elke andere knop volgt de eigen link van de actie. Leest met de `accessToken` van de Dashboard-handle, die `payout:account:read` nodig heeft, plus `identity:write` om verificatie te starten. Een mislukte leesactie geeft niets weer in plaats van een fout — een banner mag nooit het meest opvallende element worden op de pagina van iemand anders.

> [!NOTE]
>
> Deze pagina documenteert `@whop/elements@1.10.0` en `@whop/elements-react@1.10.0`.

*Sinds `v1.0.0`.*

Wordt gemount binnen [`Dashboard`](https://docs.whop.com/nl/elements/latest/dashboard/overview). `accountId` en `accessToken` komen daarvandaan. Geef props en callbacks mee via de create-opties of als React-props. Bewaar de aangemaakte handle, of de React-`ref`, om `refresh()` aan te roepen.

```tsx React theme={null}
import { WhopElements, Dashboard, RequiredActionsElement } from "@whop/elements-react";
import { loadWhop } from "@whop/elements";

function Example() {
  return (
    <WhopElements elements={loadWhop()}>
      <Dashboard /* options */>
        <RequiredActionsElement onActionRequested={(e) => console.log(e)} onIdentityVerificationRequested={(e) => console.log(e)} onDepositRequested={(e) => console.log(e)} />
      </Dashboard>
    </WhopElements>
  );
}
```

```html JavaScript theme={null}
<script src="https://cdn.whop.com/elements/amber/elements.js" data-whop-elements></script>
<script type="module">
  const dashboard = window.WhopElements().dashboard.create({ /* options */ });
  dashboard.create('required-actions', {
    onActionRequested: (e) => console.log(e),
    onIdentityVerificationRequested: (e) => console.log(e),
    onDepositRequested: (e) => console.log(e)
  }).mount('#dashboard-required-actions');
</script>
```

Voorbeeldgegevens. [Open de Playground](https://docs.whop.com/nl/elements/latest/dashboard/overview#playground).

## Props

**kind** `"individual" | "business"`

Welke verificatie de knop Verify start. `individual` (KYC) ontgrendelt uitbetalingen en een Whop-kaart. `business` (KYB) dekt dat en ontgrendelt daarnaast financiering en zakelijke kaarten — gebruik het voor een bedrijf dat die nodig heeft. Standaard `"individual"`.

## Events

Geef callbacks mee in de create-opties of als React-props.

### `onActionRequested`

De kijker heeft op een bannerknop gedrukt. Wordt geactiveerd voor elke actie, ook die het element zelf afhandelt.

**payload** `object`

**eigenschappen**

**action** `string` *required*

**waarden**

Een van `"deposit_funds"`, `"review_held_payments"`, `"submit_information_request"`, `"update_automatic_withdrawal_method"`, `"reauthorize_payout_methods"`, `"update_payout_method"`, `"update_payout_profile"`, `"card_usage_review"`, `"verify_identity"`, `"scale_account_setup"`, `"sign_formation_documents"`, `"configure_tax_remitter"`, `"add_vat_registration"`, `"confirm_tax_details"`, `"accept_payout_terms"`, `"enable_two_factor_authentication"` of `"respond_to_abuse_report"`.

**accountId** `string` *required*

### `onIdentityVerificationRequested`

De kijker heeft op Verify gedrukt bij een `verify_identity`-actie die het element kan starten. Het element opent de identiteitsverificatie zelf — dit wordt tegelijkertijd geactiveerd, zodat een host het bezoek kan vastleggen.

**payload** `object`

**eigenschappen**

**accountId** `string` *required*

### `onDepositRequested`

De kijker heeft op Add money gedrukt. Het element opent zelf nooit een stortingsflow — mount als reactie hierop je eigen flow, zoals het `deposit`-element van de `wallet`-controller.

### `onLoaderStart`

Wordt uitgevoerd nadat het laadskelet voor het eerst is weergegeven en vóór `onReady`.

### `onReady`

Wordt uitgevoerd na de eerste volledige weergave van het element.

### `onError`

Wordt uitgevoerd wanneer het element niet kan laden of crasht. De fallback blijft zichtbaar. Gebruik `code` voor programmatische afhandeling. `sourceKey` identificeert een mislukte host-state-bron.

**e** `object`

**eigenschappen**

**message** `string` *required*

**code** `string`

**sourceKey** `string`

## Methoden

Roep deze aan op de handle die `create` retourneert, of via een React-`ref`.

### `refresh`

Lees het account opnieuw. Roep het aan wanneer de kijker terugkeert van verifiëren of storten, zodat de banners de nieuwe status weergeven zonder te wachten tot de cache verloopt.

**Retourneert** `Promise<void>`

### `mount`

Mount het element in `target` en begint met laden. React-componenten mounten zichzelf.

**Parameters**

**target** `string | HTMLElement` *required*

### `destroy`

Verwijdert het element en geeft het frame en de abonnementen vrij. Je kunt het meerdere keren aanroepen. React verwijdert het element automatisch.

### `update`

Voegt nieuwe props samen in het gemounte element. Wijzig in React in plaats daarvan de componentprops.

**Parameters**

**options** `Partial\<RequiredActionsElementProps\>` *required*

## Styling

Style deze onderdelen via `appearance.classes`. Gebruik camelCase of kebab-case voor eigenschapsnamen en vermeld eenheden. Stylesheets van de pagina kunnen het frame van het element niet bereiken. Het framework valideert elke declaratie voordat die wordt geïnjecteerd.

| Klasse | Doel |
| - | - |
| `.whop-RequiredActions` | De banners met openstaande acties |

```ts theme={null}
const dashboard = whop.dashboard.create({
  appearance: {
    classes: {
      'whop-RequiredActions': { borderRadius: '8px', fontWeight: '600' }
    }
  }
});

dashboard.update({
  appearance: {
    classes: { 'whop-RequiredActions': { fontWeight: '700' } }
  }
});
```

Geef in React `appearance` mee aan `<Dashboard>`. Stel het globaal in met `WhopElements({ appearance })`.


## Related topics

- [Dashboard](https://docs.whop.com/nl/elements/latest/dashboard/overview.md)
- [KycElement](https://docs.whop.com/nl/elements/latest/verifications/kyc.md)
- [ActionsElement](https://docs.whop.com/nl/elements/latest/wallet/actions.md)
