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

# Card

> Importiere und verwende die Card-Komponenten aus @pharen/ui.

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 **Card** kannst du strukturierte Produktinformationen darzustellen. Diese Seite dokumentiert alle Vue-Komponenten, die das Modul öffentlich exportiert.

<PharenUiPreview name="card" title="Card Vorschau" />

<Accordion title="Code anzeigen">
  ```vue theme={null}
  <script setup lang="ts">
  import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@pharen/ui';
  </script>

  <template>
    <Card>
      <CardHeader>
        <CardTitle>Workspace usage</CardTitle>
        <CardDescription>Usage for the current billing period.</CardDescription>
      </CardHeader>
      <CardContent>42 workflow runs</CardContent>
    </Card>
  </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 { Card, CardAction, CardHeader, CardContent, CardTable, CardFooter, CardHeading, CardToolbar, CardTitle, CardDescription } from '@pharen/ui';
```

## Exporte

| Export            | Aufgabe                                   |
| ----------------- | ----------------------------------------- |
| `Card`            | Exportierte Vue-Komponente dieses Moduls. |
| `CardAction`      | Exportierte Vue-Komponente dieses Moduls. |
| `CardHeader`      | Strukturiert den Kopfbereich.             |
| `CardContent`     | Enthält den sichtbaren Inhalt.            |
| `CardTable`       | Exportierte Vue-Komponente dieses Moduls. |
| `CardFooter`      | Strukturiert den Fußbereich.              |
| `CardHeading`     | Exportierte Vue-Komponente dieses Moduls. |
| `CardToolbar`     | Exportierte Vue-Komponente dieses Moduls. |
| `CardTitle`       | Zeigt den zugänglichen Titel.             |
| `CardDescription` | Zeigt ergänzende Beschreibung.            |

## Quellcode

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