Introducing shieldcn — README badges, shadcn style.

Check it out

API Reference Table

Expandable prop reference table with color-coded types for component documentation.

Loading...

Installation

$ shadcn add @jalco/api-ref-table

Usage

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 fullType show an expand button revealing the full type signature.