# veryfront/fonts

## Import

```ts
import { GoogleFonts } from "veryfront/fonts";
```

## Examples

```tsx
import { GoogleFonts } from "veryfront/fonts";

<GoogleFonts
  fonts={[
    { name: "Inter", weights: [400, 500, 700], variable: "--font-inter" },
    { name: "Fira Code", weights: [400], variable: "--font-mono" },
  ]}
/>;
```

## Exports

### Components

| Name          | Description          | Source                                                                                   |
| ------------- | -------------------- | ---------------------------------------------------------------------------------------- |
| `GoogleFonts` | Render Google fonts. | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/fonts/index.ts) |

### Types

| Name               | Description                     | Source                                                                                   |
| ------------------ | ------------------------------- | ---------------------------------------------------------------------------------------- |
| `Font`             | Public API contract for font.   | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/fonts/index.ts) |
| `GoogleFontsProps` | Props accepted by Google fonts. | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/fonts/index.ts) |
