# Identity Verification (/docs/components/identity-verification)



<ComponentPreview name="identity-verification" />

## Installation [#installation]

<Tabs items="[&#x22;Command&#x22;, &#x22;Manual&#x22;]">
  <Tab value="Command">
    <CodeBlockTabs defaultValue="npm">
      <CodeBlockTabsList>
        <CodeBlockTabsTrigger value="npm">
          npm
        </CodeBlockTabsTrigger>

        <CodeBlockTabsTrigger value="pnpm">
          pnpm
        </CodeBlockTabsTrigger>

        <CodeBlockTabsTrigger value="yarn">
          yarn
        </CodeBlockTabsTrigger>

        <CodeBlockTabsTrigger value="bun">
          bun
        </CodeBlockTabsTrigger>
      </CodeBlockTabsList>

      <CodeBlockTab value="npm">
        ```bash
        npx shadcn@latest add @uploadcn/identity-verification
        ```
      </CodeBlockTab>

      <CodeBlockTab value="pnpm">
        ```bash
        pnpm dlx shadcn@latest add @uploadcn/identity-verification
        ```
      </CodeBlockTab>

      <CodeBlockTab value="yarn">
        ```bash
        yarn dlx shadcn@latest add @uploadcn/identity-verification
        ```
      </CodeBlockTab>

      <CodeBlockTab value="bun">
        ```bash
        bun x shadcn@latest add @uploadcn/identity-verification
        ```
      </CodeBlockTab>
    </CodeBlockTabs>
  </Tab>

  <Tab value="Manual">
    Install [Upload](/docs/components/upload) and the shadcn `button` component, then copy:

    <ComponentSource name="identity-verification" />
  </Tab>
</Tabs>

## Usage [#usage]

```tsx
import { IdentityVerification } from "@/components/identity-verification"
```

```tsx
<IdentityVerification onSubmit={(files) => verify(files)} />
```

Built on [`UploadSlot`](/docs/components/upload#slots): one uploader, a named slot per document, each tagged with `meta.slot`. Store identity documents in a private bucket and serve them with short-lived signed URLs.

## Props [#props]

<TypeTable
  type="{
  adapter: {
    type: &#x22;UploadAdapter&#x22;,
    default: 's3Adapter({ endpoint: &#x22;/api/upload&#x22; })',
    description: &#x22;Where files go.&#x22;,
  },
  uploader: {
    type: &#x22;Uploader&#x22;,
    description: &#x22;An uploader from `useUploader`, instead of options.&#x22;,
  },
  steps: { type: &#x22;VerificationStep[]&#x22;, default: &#x22;ID front, ID back, selfie&#x22; },
  optional: {
    type: &#x22;string[]&#x22;,
    default: '[&#x22;id-back&#x22;]',
    description: &#x22;Steps that may be skipped.&#x22;,
  },
  maxSize: { type: &#x22;number&#x22;, default: &#x22;15 MB&#x22; },
  onSubmit: { type: &#x22;(files: Record<string, UploadItem>) => void&#x22; },
  className: { type: &#x22;string&#x22; },
}"
/>
