Components (172)
Permission Request
Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.
Loading Permission Request…
Usage
import { PermissionRequest } from "ui-kit/components/permission-request";Props
| Prop | Type | Default | Description |
|---|---|---|---|
agent* | { name: string; model?: string; avatar?: ReactNode } | — | — |
action* | string | — | — |
target | string | — | — |
toolIcon | ReactNode | — | — |
risk | PermissionRisk | "risky" | — |
reason | string | — | — |
preview | PermissionPreviewItem[] | [] | — |
previewTitle | string | "What will happen" | — |
previewLimit | number | 3 | — |
scopes | PermissionScope[] | — | — |
scope | PermissionScope | — | — |
defaultScope | PermissionScope | "once" | — |
onScopeChange | (scope: PermissionScope) => void | — | — |
duration | number | 60 | — |
decision | PermissionDecision | null | — | — |
defaultDecision | PermissionDecision | null | null | — |
onDecisionChange | (decision: PermissionDecision | null) => void | — | — |
now | number | — | — |
className | string | — | — |