Components (172)
Prompt Library
Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.
Loading Prompt Library…
Usage
import { PromptLibrary } from "ui-kit/components/prompt-library";Props
| Prop | Type | Default | Description |
|---|---|---|---|
templates* | PromptTemplate[] | — | — |
value | string | — | — |
defaultValue | string | — | — |
onSelect | (id: string) => void | — | — |
onUse | (prompt: string, template: PromptTemplate, values: Record<string, string>) => void | — | — |
onCopy | (prompt: string) => void | — | — |
title | string | "Prompts" | — |
useLabel | string | "Use prompt" | — |
className | string | — | — |