# FileMeta

A compact combined file-format and byte-size chip.

Connect Flood once using [the installation guide](https://flood.md/docs/installation). Then import the components you use; no per-component add command is needed.

## Example

```tsx
"use client";

import { FloodRoot, FileMeta } from "@flood-md/react";
import "@flood-md/react/styles.css";

export function Example() {
  return (
    <FloodRoot>
      <FileMeta format="PDF" size={2400000} />
    </FloodRoot>
  );
}
```

## Design notes

- The format label is display metadata, not validated MIME detection.
- Size uses SI units; formatSize customizes the text. Missing values do not create empty chip slots. Long metadata may wrap inside its single Badge at enlarged or constrained widths.

## API reference

| Prop | Values | Default |
| --- | --- | --- |
| `format` | `string` | `—` |
| `size` | `number` | `—` |
| `formatSize` | `(bytes: number) => string` | `—` |
| `Native HTML props` | `Omit<HTMLAttributes<HTMLSpanElement>, "children">` | `Forwarded` |
