FerryDocs
ContributingDocs site

Components

Each page can use these components with no import, from callouts and tabs to file trees.

Edit on GitHub
Example
<Callout type="warning" title="Back up the data directory">
It holds every secret of the server.
</Callout>

<Tabs items={['CLI', 'API']} groupId="interface" persist>
  <Tab value="CLI">`ferry scale api 3`</Tab>
  <Tab value="API">`POST /api/v1/services/api/scale`</Tab>
</Tabs>

The example gives this result:

Back up the data directory

It holds every secret of the server.

ferry scale api 3

The components

ComponentPropsUse
<Callout>type: info (default), tip, success, warning, danger · titleNotes and warnings
<Cards> / <Card>Cards: cols 2 (default) or 3 · Card: title, description, href, icon, externalLink grids
<Steps> / <Step>Start each step with a ### headingProcedures
<Tabs> / <Tab>Tabs: items, groupId, persist, defaultIndex · Tab: valueCLI, API and dashboard variants
<Accordions> / <Accordion>Accordion: titleFAQs
<Files> / <Folder> / <File>name, defaultOpenFile trees
<TypeTable>type: { field: { type, description, default, required } }Object shapes
<Badge>variant: neutral, primary, success, warning, dangerInline pills

Figures lists the components that draw pictures. docs/AUTHORING.md tells you when to use each component.

Icons for cards

The icons of the cards come from lucide-react.

A page with a card icon
import { Rocket } from 'lucide-react';

<Card title="Deploys" href="/docs/concepts/deploys" icon={<Rocket />} />

On this page