Composants de la page d’accueil
Hero, Action, Media, Install et StartHere pour docs/index.
Hero affiche le title et la description du frontmatter : la page d’accueil garde une seule source pour son h1 et ses métadonnées. Un bloc Install suivi d’un StartHere s’affiche sur une ligne à deux colonnes.
---
title: Les tests d’e-mails pensés pour l’automatisation.
description: Des boîtes jetables qui reçoivent les vrais e-mails de vos tests.
---
<Hero eyebrow="TestInbox · v1">
<Action label="Commencer" href="./quickstart" />
<Action label="Référence API" href="/api" />
</Hero>
<Install>
<Tab label="TypeScript">
```bash
npm install @testinbox/client
```
```typescript
const client = new TestInbox({ apiKey: process.env.TESTINBOX_API_KEY });
```
</Tab>
</Install>
<StartHere>
<Entry title="Démarrage rapide" href="./quickstart" description="Premier e-mail de test" meta="5 min" />
<Entry title="Référence API" href="/api" meta="25 endpoints" />
</StartHere>
<Steps variant="strip" title="Le principe">
<Step title="Créer une boîte">
`inboxes.create()`
</Step>
</Steps>| Composant | Props |
|---|---|
Hero | eyebrow? · jusqu’à 3 Action + 1 Media |
Action | label, href, variant? primary | secondary |
Media | poster, alt, caption?, duration? m:ss, linkLabel? + linkHref? |
Install | Enfants Tab avec 1 ou 2 blocs (commande, puis config) |
StartHere | Entry avec title, href, description?, meta? |