Unstyled React primitives, published one package per component.
| Package | Description |
|---|---|
@ncdai/react-swipe-actions |
Swipe a row in a list to reveal actions on the left or right |
Styled versions built on these primitives live in the chanhdai.com registry.
apps/docs is a Fumadocs site. Content lives in
content/docs as MDX; the sidebar, search and table of contents come from the
page tree, so adding a primitive means adding one MDX file.
The primitives ship no CSS, so each page also documents a styled component built
on top. Those snippets are read from src/ at build time, which keeps them in
step with the demo running above them.
pnpm devpnpm install
pnpm build
pnpm check-types
pnpm lintVersioning and publishing go through Changesets; each package is versioned independently.
pnpm changeset # describe the change
pnpm version-packages # apply versions and changelogs
pnpm release # build and publishMIT © ncdai