1.6.0 • Published 8 years ago

preact-svg v1.6.0

Weekly downloads
28
License
MIT
Repository
github
Last release
8 years ago

preact-svg

NPM travis-ci

An <SVG> wrapper component that makes inline <svg> work in Preact.

CodePen Demo

preact-svg


Usage Example

import SVG from 'preact-svg';
import { h, render } from 'preact';
/** @jsx h */

const Main = () => (
	<SVG width="100" height="50">
		<path d="M0,0T 50,50 100,50 50,100Z" stroke="#000" stroke-width="2" />
	</SVG>
);

render(<Main />, document.body);

License

MIT

1.6.0

8 years ago

1.5.1

8 years ago

1.5.0

8 years ago

1.4.3

8 years ago

1.4.2

8 years ago

1.4.1

8 years ago

1.4.0

8 years ago

1.3.0

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.1.0

8 years ago