Map your docs data to one ApiReferencePartData per part, then render it.
button-docs.tsx
ApiReferenceRow
<tbody>| Prop | Type | Default | Description |
|---|---|---|---|
| prop | ApiReferenceProp | — | The prop of this row. |
| ...props | <tbody> attributes | — | Every other attribute goes to the <tbody>, with a ref. |
ApiReferenceHeader
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
ApiReferenceTitle
<h3>| Prop | Type | Default | Description |
|---|---|---|---|
| level | 234 | 3 | The heading level. Default 3. |
| ...props | <h3> attributes | — | Every other attribute goes to the <h3>, with a ref. |
ApiReferenceElement
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| lang | string | — | Highlight the text in this language (a name or alias that highlighter knows). Works when the children are text (strings and numbers). Without it the code is plain ink. |
| palette | "color""ink""theme" | — | |
| size | "default""xs" | — | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
ApiReferenceDescription
<p>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <p> attributes | — | Every other attribute goes to the <p>, with a ref. |
ApiReferenceTable
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | The row groups. With none: the own props, the inherited props, and the ...props row. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
ApiReferenceOwnProps
| Prop | Type | Default | Description |
|---|---|---|---|
| collapse | number | Number.POSITIVE_INFINITY | How many rows show before the fold. Default: all of them. |
ApiReferenceInherited
<tbody>| Prop | Type | Default | Description |
|---|---|---|---|
| collapse | number | 3 | How many rows show before the fold. Default 3. |
| ...props | <tbody> attributes | — | Every other attribute goes to the <tbody>, with a ref. |
ApiReferenceRest
<tbody>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <tbody> attributes | — | Every other attribute goes to the <tbody>, with a ref. |
ApiReference
<section>| Prop | Type | Default | Description |
|---|---|---|---|
| part | ApiReferencePartData | — | The part to show: the extractor's output for one part, or data you write or map. |
| id | string | — | The anchor id of each prop is <idPrefix>-<prop>. Default: the part name, lower case, spaces as -. |
| labels | — | The words of the table, for another language. Keep the object stable. | |
| ...props | <section> attributes | — | Every other attribute goes to the <section>, with a ref. |
ApiReferenceKeyboard
<div>| Tab | Moves focus to each prop link, each type that opens, the fold button, and the docs link. |
|---|---|
| EnterorSpace | Opens or closes the full type, or the folded rows. |
Built with
Installs with API Reference
- Components
- Badge,Button,Code,Code Block,Collapsible,Kbd











