# File type icon

- **[Atoms](/components/)**

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

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

- **CLI**

  ```
  npx shadcn add https://ui.klarhimmel.com/r/file-type-icon.json
  ```
- **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

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

[Previous](/components/card)

[Next](/components/grid-card)
