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

> Whop 잔액 대시보드에 표시되는 처리해야 할 작업 배너(신원 인증, 입금, 세금 등)를 API가 반환하는 순서대로 표시합니다. 처리할 작업이 없는 계정은 아무것도 렌더링하지 않으므로 엘리먼트를 레이아웃에 계속 배치해 둘 수 있습니다. 문구는 API에서 제공됩니다. Verify를 누르면 호스팅된 신원 인증 세션을 시작하고 해당 페이지로 이동합니다. Add money는 `depositRequested`를 보고하고 그대로 머무르므로, 호스트가 자체 입금 흐름(예: `wallet` 컨트롤러의 `deposit` 엘리먼트)을 마운트합니다. 그 외 모든 버튼은 작업 자체의 링크를 따릅니다. Dashboard 핸들의 `accessToken`으로 데이터를 읽으며, `payout:account:read`가 필요하고 인증을 시작하려면 `identity:write`도 필요합니다. 읽기에 실패하면 오류 대신 아무것도 렌더링하지 않습니다. 배너가 다른 사람의 페이지에서 가장 눈에 띄는 요소가 되어서는 안 되기 때문입니다.

> [!NOTE]
>
> 이 페이지는 `@whop/elements@1.10.0` 및 `@whop/elements-react@1.10.0`을 다룹니다.

*`v1.0.0`부터 지원.*

[`Dashboard`](https://docs.whop.com/ko/elements/latest/dashboard/overview) 안에 마운트됩니다. `accountId`와 `accessToken`은 Dashboard에서 가져옵니다. props와 콜백은 생성 옵션 또는 React props로 전달합니다. `refresh()`를 호출하려면 생성된 핸들 또는 React `ref`를 보관하세요.

```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>
```

예시 데이터입니다. [Playground 열기](https://docs.whop.com/ko/elements/latest/dashboard/overview#playground).

## Props

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

Verify 버튼이 시작하는 인증 유형입니다. `individual`(KYC)은 지급과 Whop 카드를 활성화합니다. `business`(KYB)는 이를 포함하며 추가로 금융 지원과 비즈니스 카드를 활성화합니다. 이러한 기능이 필요한 회사라면 `business`를 사용하세요. 기본값은 `"individual"`입니다.

## 이벤트

생성 옵션 또는 React props로 콜백을 전달합니다.

### `onActionRequested`

사용자가 배너 버튼을 눌렀습니다. 엘리먼트가 자체적으로도 처리하는 작업을 포함해 모든 작업에 대해 실행됩니다.

**payload** `object`

**속성**

**action** `string` *required*

**값**

`"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"`, `"respond_to_abuse_report"` 중 하나입니다.

**accountId** `string` *required*

### `onIdentityVerificationRequested`

사용자가 엘리먼트가 시작할 수 있는 `verify_identity` 작업에서 Verify를 눌렀습니다. 엘리먼트가 직접 신원 인증을 열며, 이 이벤트는 함께 실행되므로 호스트가 이동을 기록할 수 있습니다.

**payload** `object`

**속성**

**accountId** `string` *required*

### `onDepositRequested`

사용자가 Add money를 눌렀습니다. 엘리먼트는 직접 입금 흐름을 열지 않으므로, 이에 대한 응답으로 `wallet` 컨트롤러의 `deposit` 엘리먼트 같은 자체 흐름을 마운트하세요.

### `onLoaderStart`

로딩 스켈레톤이 처음 그려진 후, `onReady` 전에 실행됩니다.

### `onReady`

엘리먼트가 처음으로 완전히 그려진 후 실행됩니다.

### `onError`

엘리먼트가 로드에 실패하거나 충돌할 때 실행됩니다. 대체 화면은 계속 표시됩니다. 프로그래밍 방식으로 처리하려면 `code`를 사용하세요. `sourceKey`는 실패한 호스트 상태 소스를 식별합니다.

**e** `object`

**속성**

**message** `string` *required*

**code** `string`

**sourceKey** `string`

## 메서드

`create`가 반환한 핸들에서, 또는 React `ref`를 통해 호출합니다.

### `refresh`

계정을 다시 읽습니다. 사용자가 인증이나 입금을 마치고 돌아왔을 때 호출하면 캐시 만료를 기다리지 않고 배너에 새 상태가 반영됩니다.

**반환값** `Promise<void>`

### `mount`

`target`에 엘리먼트를 마운트하고 로딩을 시작합니다. React 컴포넌트는 자동으로 마운트됩니다.

**매개변수**

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

### `destroy`

엘리먼트를 제거하고 프레임과 구독을 해제합니다. 여러 번 호출해도 됩니다. React는 엘리먼트를 자동으로 제거합니다.

### `update`

마운트된 엘리먼트에 새 props를 병합합니다. React에서는 대신 컴포넌트 props를 변경하세요.

**매개변수**

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

## 스타일링

`appearance.classes`를 통해 다음 부분의 스타일을 지정합니다. 속성 이름은 카멜 케이스 또는 케밥 케이스를 사용하고 단위를 포함하세요. 페이지 스타일시트는 엘리먼트의 프레임에 적용되지 않습니다. 프레임워크는 각 선언을 삽입하기 전에 유효성을 검사합니다.

| 클래스 | 대상 |
| - | - |
| `.whop-RequiredActions` | 처리해야 할 작업 배너 |

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

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

React에서는 `appearance`를 `<Dashboard>`에 전달합니다. 전역으로 설정하려면 `WhopElements({ appearance })`를 사용하세요.


## Related topics

- [KycElement](https://docs.whop.com/ko/elements/latest/verifications/kyc.md)
- [ActionsElement](https://docs.whop.com/ko/elements/latest/wallet/actions.md)
- [SetupIntent Requires Action](https://docs.whop.com/ko/api-reference/setup-intents/setupintent-requires-action.md)
