Skip to content
Klarhimmel UI

File type icon

npx shadcn add https://ui.klarhimmel.com/r/file-type-icon.json
DetailsAbout, 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
  • PDF
  • Email template
  • Style guide
  • Brand guidelines
  • Image
  • Video
  • Logo
  • Clickable mockup
  • Other file
  • Project
  • Task
file-type-icon.tsx
import { Theme } from '@/components/klarhimmel/theme/style';
import { FileTypeIcon } from '@/components/klarhimmel/ui/file-type-icon';

export default function Example() {
  return (
    <Theme theme="brand">
      <FileTypeIcon kind="brand_guide" className="size-10" />
    </Theme>
  );
}

Import

Import

import { FileTypeIcon } from '@/components/klarhimmel/ui/file-type-icon';
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

PropTypeDefaultDescription
kind'document' | 'pdf' | 'email_template' | 'style_guide' | 'brand_guide'…requireddocument, pdf, email_template, style_guide, brand_guide, image, video, logo, mockup, other, project, task.
labelstring-Names the icon for assistive tech. Omit when the card's text already says the kind (the default: hidden).
classNamestring-Extra classes, merged after the component's own.