Getting Started
Components
- Agent Status
- Agent Template Card
- API Key Card
- Audio Player
- Bar Visualizer
- Channel Status Card
- Chat Composer
- Code Editor
- Condition Builder
- Confirm Dialog
- Conversation
- Conversation Bar
- Dataset Card
- Document Status Badge
- Extraction Strategy Select
- File Icon
- File Upload
- Indexing Progress
- Live Waveform
- Matrix
- Message
- Mic Selector
- Model Diff View
- Model Selector
- Model Type Filter
- Node Catalog
- Option Editor
- Orb
- Output Variables View
- Package Card
- Prompt Editor
- Provider Status Card
- Radio Card
- Resource Card
- Resource Sidebar
- Response
- Run Node List
- Scrub Bar
- Segment Card
- Shimmering Text
- Speech Input
- Token Trend Chart
- Tool Call Card
- Transcript Viewer
- Usage Stat Card
- Variable Binding Editor
- Variable Selector
- Voice Button
- Voice Picker
- Waveform
- Workflow Node Card
- Workspace Selector
zgi-workflow.md
customer-records.csv
agent-runtime.json
brief.pdf
voice-sample.mp3
prototype.png
import { FileIcon } from "@/components/ui/file-icon"
const files = [
"zgi-workflow.md",
"customer-records.csv",
"agent-runtime.json",
"brief.pdf",
"voice-sample.mp3",
"prototype.png",
]
export function FileIconDemo() {
return (
<div className="grid w-full max-w-md gap-2">
{files.map((file) => (
<div
key={file}
className="bg-card flex items-center gap-3 rounded-lg border px-3 py-2"
>
<FileIcon filename={file} />
<span className="truncate text-sm font-medium">{file}</span>
</div>
))}
</div>
)
}
Installation
pnpm dlx shadcn@latest add https://ui.zgi.ai/r/file-icon.json
Usage
import { FileIcon } from "@/components/ui/file-icon"<FileIcon filename="agent-runtime.json" />
<FileIcon extension="csv" size="lg" />API Reference
| Prop | Type | Description |
|---|---|---|
| filename | string | Filename used to infer the extension |
| extension | string | Explicit extension. Takes precedence over filename |
| size | "sm" | "md" | "lg" | number | Icon size |
| muted | boolean | Render with muted foreground color |
Deploy and Scale Agents with ZGI
ZGI delivers the infrastructure and developer experience you need to ship reliable audio & agent applications at scale.
Talk to an expert