Skip to content

Repository files navigation

ncdai/react-primitives

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.

Docs

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 dev

Development

pnpm install
pnpm build
pnpm check-types
pnpm lint

Releasing

Versioning 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 publish

License

MIT © ncdai

About

Behaviour, accessibility and gestures, with no styles attached.

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages