React Konva
react-konva
React components for the Konva 2d canvas library. Build interactive graphics, design editors, and whiteboards with JSX.
Charts
react
canvas
jsx
konva
graphics
design-editor
canvas-editor
whiteboard
transformer
react-konva
Stars
6.4k
Weekly
1.8M
Open issues
0
Bundle
~25 kB
Installation
npm install react-konvaCode example
import { Konva } from "react-konva";
const data = [
{ name: "Jan", value: 12 },
{ name: "Feb", value: 18 },
];
export function Example() {
return (
<Konva data={data} width={420} height={240}>
{/* series / axes from React Konva */}
</Konva>
);
}Pros & cons
Pros
- Actively maintained by lavrton
- 1.8M weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~25 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 0 open issues on GitHub