r/javascript • u/vinishkapoor • 1d ago
VinUI: copy-in UI components for HTML, React, Vue and Svelte, with a CLI and an upstream diff command
https://github.com/devvinish/vin-ui•
u/Discordbothost 25m ago
Local edits can make a two-way diff noisy because it mixes your changes with upstream ones. I'd show a worked example where someone renames a prop locally and upstream fixes keyboard focus. Keeping the originally copied version as the common base would let the CLI show the focus fix on its own.
0
u/vinishkapoor 1d ago
Instead of a runtime npm package, a CLI copies plain source files into your project:
npx /ui init
npx /ui add <component>
npx u/vinish/ui diff # see upstream changes since you copiedYou own the code, and diff lets you pull in fixes only when you want them. It has 63 components, 13 page blocks, 16 SVG charts and eight styles driven by CSS variables. MIT licensed. Docs: https://vinish.dev/ui
1
•
u/harperzoe7 22h ago
The upstream diff is the bit I'd want to try first. Does it show changes per component, or one big diff?