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

# Approval

> Importiere und verwende die Approval-Komponenten aus @pharen/ui/components/ai.

export const PharenUiPreview = ({name, title = 'Pharen UI component preview'}) => <div className="not-prose my-6 overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm dark:border-white/10 dark:bg-zinc-950">
    <div className="pharen-ui-preview-root" data-pharen-ui-preview data-example={name} role="region" aria-label={title} />
  </div>;

Mit **Approval** kannst du AI-Oberflächen aufzubauen. Diese Seite dokumentiert alle Vue-Komponenten, die das Modul öffentlich exportiert.

<PharenUiPreview name="approval" title="Approval Vorschau" />

<Accordion title="Code anzeigen">
  ```vue theme={null}
  <script setup lang="ts">
  import { ApprovalPresentation } from '@pharen/ui/components/ai';

  const presentation = {
    kind: 'browser_batch' as const,
    toolName: 'browser',
    riskClass: 'mutation' as const,
    executionTarget: 'local' as const,
    approvalScope: 'single_call' as const,
    steps: [
      { position: 1, action: 'open_page', target: 'pharen.app', riskClass: 'read' as const },
      { position: 2, action: 'submit_form', target: 'Create workflow', riskClass: 'mutation' as const },
    ],
  };
  </script>

  <template><ApprovalPresentation :presentation="presentation" label="Planned browser actions" /></template>
  ```
</Accordion>

## Installation

<CodeGroup>
  ```bash npm theme={null}
  npm install @pharen/ui
  ```

  ```bash pnpm theme={null}
  pnpm add @pharen/ui
  ```

  ```bash yarn theme={null}
  yarn add @pharen/ui
  ```

  ```bash bun theme={null}
  bun add @pharen/ui
  ```
</CodeGroup>

<Note>
  Importiere `@pharen/ui/styles.css` genau einmal im Einstiegspunkt deiner Anwendung.
</Note>

## Verwendung

```ts theme={null}
import { ApprovalPresentation } from '@pharen/ui/components/ai';
```

## Exporte

| Export                 | Aufgabe                                   |
| ---------------------- | ----------------------------------------- |
| `ApprovalPresentation` | Exportierte Vue-Komponente dieses Moduls. |

## Quellcode

[Quellcode auf GitHub öffnen](https://github.com/PharenIT/ELEV8-Labs/tree/main/src/packages/ui/src/components/ai/approval)
