dlasky / react-svg-primitives

React SVG drawing primitives

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react svg primitives

This library is a set of primitives designed to make drawing svg graphics programmatically via react components declarative. It also aims to smooth out some of the oddities of SVG syntax where possible.

Example Usage

import React, {FC} from "react"
import { SVG, Circle }

const Component = () => {
    <SVG>
        <Circle x={10} y={10} radius={5}>
    </SVG>
}

About

React SVG drawing primitives

License:MIT License


Languages

Language:TypeScript 88.9%Language:JavaScript 11.1%