# FileCard

A downloadable resource with a legible name and size.

- Family: Content, imported from `mizu-ui` or `mizu-ui/content`
- Docs: https://mizu.user64bit.world/components/file-card
- Source: https://github.com/0xuser64bit/mizu/blob/main/packages/mizu/src/content/Typography.tsx

## Usage

```tsx
import { FileCard } from "mizu-ui";

export function Example() {
  return (
    <FileCard
      href="/api/source/button"
      name="Button.tsx"
      type="TypeScript source"
    />
  );
}
```

## Copy it with the shadcn CLI

```sh
npx shadcn@latest init 0xuser64bit/mizu/preset # once, where there is no components.json
npx shadcn@latest add 0xuser64bit/mizu/file-card
```

## Props

- `href / name`: `string`. Resource URL and filename.
- `size`: `number`. Optional actual byte count.
- `type / download`: `string / boolean` (default `true`). File descriptor and download preference.

## Accessibility

Native download anchor, readable metadata. Cross-origin servers control whether download is honored; this component never invents file size.

## Motion

Static resource link.
