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

# Select

> Importiere und verwende die Select-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 **Select** kannst du einen Wert zu erfassen oder zu bearbeiten. Diese Seite dokumentiert alle Vue-Komponenten, die das Modul öffentlich exportiert.

<PharenUiPreview name="select" title="Select Vorschau" />

<Accordion title="Code anzeigen">
  ```vue theme={null}
  <script setup lang="ts">
  import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@pharen/ui';
  </script>

  <template>
    <Select>
      <SelectTrigger><SelectValue placeholder="Choose a role" /></SelectTrigger>
      <SelectContent>
        <SelectItem value="admin">Admin</SelectItem>
        <SelectItem value="member">Member</SelectItem>
      </SelectContent>
    </Select>
  </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 { Select, SelectContent, SelectGroup, SelectItem, SelectItemText, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from '@pharen/ui';
```

## Exporte

| Export                   | Aufgabe                                   |
| ------------------------ | ----------------------------------------- |
| `Select`                 | Exportierte Vue-Komponente dieses Moduls. |
| `SelectContent`          | Enthält den sichtbaren Inhalt.            |
| `SelectGroup`            | Gruppiert zusammengehörige Elemente.      |
| `SelectItem`             | Stellt ein einzelnes Element dar.         |
| `SelectItemText`         | Exportierte Vue-Komponente dieses Moduls. |
| `SelectLabel`            | Beschriftet einen Wert oder Bereich.      |
| `SelectScrollDownButton` | Exportierte Vue-Komponente dieses Moduls. |
| `SelectScrollUpButton`   | Exportierte Vue-Komponente dieses Moduls. |
| `SelectSeparator`        | Trennt benachbarte Bereiche.              |
| `SelectTrigger`          | Öffnet oder aktiviert die Komponente.     |
| `SelectValue`            | Exportierte Vue-Komponente dieses Moduls. |

## Quellcode

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