Skip to content

Sidenote

Tufte-style margin notes: numbered references in the text with the notes beside it on wide screens, and tap-to-expand inline notes on phones.

Installation

pnpm dlx shadcn@latest add @portfolio-kit/sidenote
First time? Add the @portfolio-kit registry to components.json
components.json
{
  "registries": {
    "@portfolio-kit": "https://www.parthjadhav.com/products/portfolio-kit/r/{name}.json"
  }
}

Usage

Examples

Margin notes

variant="margin" for unnumbered asides such as a definition or a source, mixed with numbered notes in the same paragraph.

API Reference

Used in