AI
ID Badge
A compact monospace, click-to-copy badge for ids, keys, and tokens.
A compact monospace badge for ids, keys, and other copyable tokens. Clicking it copies the text to the clipboard and briefly shows a check icon. Long values truncate by default; set truncate={false} to keep the full value on one line.
Import
import { IDBadge } from "@yuhuanowo/yunui/ai";
Basic
Basic
Without truncation
Without truncation
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| text* | string | — | |
| truncate | boolean | true |