API Reference Table
Expandable prop reference table with color-coded types for component documentation.
Loading...
Installation
$ shadcn add @jalco/api-ref-tableUsage
import { ApiRefTable } from "@/components/api-ref-table"<ApiRefTable title="MyComponent" props={[{ name: "size", type: '"sm" | "lg"' }]} />Examples
Prop types
Required Props
Props
PropType
Mixed Types
Props
PropType
API Reference
ApiRefTable
PropType
Notes
- Server component. No client JS — renders at build time.
- Color-coded types. Primitives, unions, arrays, and custom types are color-coded.
- Expandable. Props with
fullTypeshow an expand button revealing the full type signature.