# tiny-svg [![Build Status](https://travis-ci.com/bpmn-io/tiny-svg.svg?branch=master)](https://travis-ci.com/bpmn-io/tiny-svg) __tiny-svg__ is a minimal toolbelt for creating clean SVG applications. ## Features * no wrapping magic, using native DOM elements instead * modular, just use what you need * `2kB` minified + gzipped * `innerSVG` support * simplified attribute handling * geometry helpers Checkout [provided utilities](./lib). ## Usage ```javascript import { appendTo, classes, create, innerSVG } from 'tiny-svg'; var container = document.createElement('div'); var element = appendTo(create('svg'), container); var g = appendTo(create('g'), element); // add classes, SVG style! classes(g).add('foo'); var text = ` `; // set innerSVG innerSVG(g, text); ``` Your favourite module bundler should apply tree-shaking to only include the components your application requires. If you're using CommonJS modules give [common-shake](https://github.com/indutny/common-shake) a try. ## Related * [min-dom](https://github.com/bpmn-io/min-dom) - minimal DOM utility toolbelt * [min-dash](https://github.com/bpmn-io/min-dash) - minimal lodash inspired utility toolbelt ## License MIT