Dev Design Library

Sidenotes

Slides footnotes into the margin beside their sentence, and folds them inline on narrow screens.

Sidenotes preview
Library
UI Lab
Framework
React
Type
component
License
MIT
Install
npx shadcn@latest add https://lab.xevrion.dev/r/sidenotes.json
Files
  • src/lab/components/sidenotes.tsx
  • src/lib/use-reduced-motion.ts
  • src/lib/cn.ts
Source
https://github.com/xevrion/ui-lab

Categories

More from UI Lab