Skip to content

API Reference

Pro

A props table for a docs page: types, defaults, full types that open, inherited props, and a Keyboard card. You give it the data.

  • React 19
  • Tailwind CSS 4

Added Nov 10, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

API Reference needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
78
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Map your docs data to one ApiReferencePartData per part, then render it.

button-docs.tsx

ApiReferenceRow

<tbody>
PropTypeDefaultDescription
propRequiredApiReferenceProp—The prop of this row.
...props<tbody> attributes—Every other attribute goes to the <tbody>, with a ref.

ApiReferenceHeader

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

ApiReferenceTitle

<h3>
PropTypeDefaultDescription
level2343The heading level. Default 3.
...props<h3> attributes—Every other attribute goes to the <h3>, with a ref.

ApiReferenceElement

<div>
PropTypeDefaultDescription
langstring—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>
PropTypeDefaultDescription
...props<p> attributes—Every other attribute goes to the <p>, with a ref.

ApiReferenceTable

<div>
PropTypeDefaultDescription
childrenReactNode—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

PropTypeDefaultDescription
collapseAfternumberNumber.POSITIVE_INFINITYHow many rows show before the fold. Default: all of them.

ApiReferenceInherited

<tbody>
PropTypeDefaultDescription
collapseAfternumber3How many rows show before the fold. Default 3.
...props<tbody> attributes—Every other attribute goes to the <tbody>, with a ref.

ApiReferenceRest

<tbody>
PropTypeDefaultDescription
...props<tbody> attributes—Every other attribute goes to the <tbody>, with a ref.

ApiReference

<section>
PropTypeDefaultDescription
partRequiredApiReferencePartData—The part to show: the extractor's output for one part, or data you write or map.
idPrefixstring—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>
PropTypeDefaultDescription
keysRequiredreadonly ApiReferenceKey[]—
labelsPartial<{ label: string; or: string; }>—
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Map the output of react-docgen, TypeDoc, or your own script to ApiReferencePartData, one object per part.
  • Compose the parts to fold long lists, add a row by hand, or leave a group out.
  • Use ApiReferenceKeyboard for the keys of the same component.
  • For a table of app data that people sort and filter, use the Table.
  • For one code sample, use the Code Block.
TabMoves focus to each prop link, each type that opens, the fold button, and the docs link.
EnterorSpaceOpens or closes the full type, or the folded rows.

Each part is a real table with a name (Switch props) and row headers on the prop names.

Folded rows stay in the page with hidden="until-found", so find in page opens them.

The name of a type that opens starts with the visible type (function, full type of onCheckedChange).

Built with

Installs with API Reference

  1. AddedAPI Reference, with Badge, Button, Code, Code Block, Collapsible, Kbd.
Open the release