File type icon
npx shadcn add https://ui.klarhimmel.com/r/file-type-icon.jsonCopy for AIDetailsAbout, usage, props and more
One icon per kind of file (document, PDF, email template, style guide, brand guidelines, image, video, logo, clickable mockup, other) and for a project or task: ink lines, one accent detail.
Preview
- Document
- Email template
- Style guide
- Brand guidelines
- Image
- Video
- Logo
- Clickable mockup
- Other file
- Project
- Task
Import
Import
- Files
- file-type-icon.tsx, in components/klarhimmel/ui/. With it: theme.
- Render in
- Render it inside <Theme>, once near the root of your app. Tokens and fonts are scoped to it, so outside it the component is unstyled.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
kind | 'document' | 'pdf' | 'email_template' | 'style_guide' | 'brand_guide'… | required | document, pdf, email_template, style_guide, brand_guide, image, video, logo, mockup, other, project, task. |
label | string | - | Names the icon for assistive tech. Omit when the card's text already says the kind (the default: hidden). |
className | string | - | Extra classes, merged after the component's own. |