> ## 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.

# CapabilitiesElement

> Kontoens verifikationsstatus: om verifikation af person og virksomhed er gennemført, og hvilke funktioner det låser op for. Skrivebeskyttet — et tryk på en verificeringsknap rapporterer `verificationRequested` og bliver, hvor det er, så hosten monterer sit eget flow, f.eks. dette namespaces `kyc`-element. Begge halvdele kan skjules, så en host, der kun ønsker listen over funktioner eller kun de to verifikationsrækker, kan udelade den anden.

> [!NOTE]
>
> Denne side dokumenterer `@whop/elements@1.10.0` og `@whop/elements-react@1.10.0`.

*Siden `v1.0.0`.*

Monteres inde i [`Verifications`](https://docs.whop.com/da/elements/latest/verifications/overview). Angiv props og callbacks via create-indstillingerne eller som React-props.

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

function Example() {
  return (
    <WhopElements elements={loadWhop()}>
      <Verifications /* options */>
        <CapabilitiesElement onVerificationRequested={(e) => console.log(e)} />
      </Verifications>
    </WhopElements>
  );
}
```

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

Eksempeldata. [Åbn Playground](https://docs.whop.com/da/elements/latest/verifications/overview#playground).

## Props

**hideStatus** `boolean`

Skjul verifikationsrækkerne for person og virksomhed, så kun funktionerne er tilbage. Standard er `false`.

**hideCapabilities** `boolean`

Skjul listen over funktioner, så kun de to verifikationsrækker er tilbage. Standard er `false`.

**hidePayouts** `boolean`

Skjul funktionsrækken Payouts. Standard er `false`. Siden `v1.9.0`.

**hideBankDeposits** `boolean`

Skjul funktionsrækken Bank deposits. Standard er `false`. Siden `v1.9.0`.

**hideCards** `boolean`

Skjul funktionsrækken Whop Card. Standard er `false`. Siden `v1.9.0`.

**hideAds** `boolean`

Skjul funktionsrækken Ads. Standard er `false`. Siden `v1.9.0`.

## Events

Angiv callbacks i create-indstillingerne eller som React-props.

### `onVerificationRequested`

Seeren trykkede på en verificeringsknap. Elementet navigerer aldrig — montér din egen verifikation, f.eks. dette namespaces `kyc`-element, som svar på dette.

**payload** `object`

**egenskaber**

**accountId** `string` *required*

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

### `onLoaderStart`

Kører, efter at indlæsningsskelettet først er tegnet, og før `onReady`.

### `onReady`

Kører efter elementets første fuldstændige rendering.

### `onError`

Kører, når elementet ikke kan indlæses eller går ned. Fallback-visningen forbliver synlig. Brug `code` til programmatisk håndtering. `sourceKey` identificerer en host-state-kilde, der fejlede.

**e** `object`

**egenskaber**

**message** `string` *required*

**code** `string`

**sourceKey** `string`

## Metoder

Kald disse på det handle, som `create` returnerer, eller via en React-`ref`.

### `mount`

Monterer elementet i `target` og begynder indlæsningen. React-komponenter monterer sig selv.

**Parametre**

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

### `destroy`

Fjerner elementet og frigiver dets frame og abonnementer. Du kan kalde den mere end én gang. React fjerner elementet automatisk.

### `update`

Fletter nye props ind i det monterede element. I React ændrer du i stedet komponentens props.

**Parametre**

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

## Styling

Style disse dele via `appearance.classes`. Brug camel case eller kebab case til egenskabsnavne, og medtag enheder. Sidens stylesheets kan ikke nå elementets frame. Frameworket validerer hver deklaration, før den indsættes.

| Klasse | Rammer |
| - | - |
| `.whop-CapabilityRow` | Én funktionsrække: dens navn, tip og tilstand |
| `.whop-VerificationStatusRow` | Én verifikationsrække: dens navn og dens handling |
| `.whop-VerificationStatusSurface` | Fladen med verifikationsstatus |

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

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

I React angiver du `appearance` til `<Verifications>`. Sæt den globalt med `WhopElements({ appearance })`.
