@velkin/react
v0.1.1
Published
React wrappers for @velkin/ui web components
Readme
@velkin/react
React wrappers for @velkin/ui.
Install
npm install @velkin/ui @velkin/react lit @lit/reactimport { VuThemeProvider } from "@velkin/react/theme-provider";
import { VuButton } from "@velkin/react/button";Import each wrapper from its subpath. React events use onVu* and payloads live on e.detail.
Bundler plugins
Same factory on every bundler — only the import path changes. Pair with velkin() from @velkin/ui.
import { velkin } from "@velkin/ui/vite"; // or /webpack / /rollup
import { velkinReact } from "@velkin/react/vite";
export default defineConfig({
plugins: [react(), velkin(), velkinReact()].flat(),
});Next.js: defineVelkin from @velkin/react/next (adds the webpack plugins for you).
Documentation
https://velkinui.com/docs/react
License
MIT. Commercial Pro wrappers are published separately as @velkin/react-pro.
