Skip to content

postxml/postxml-icon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postxml-icon

npm version

PostXML plugin better svg icons usage.

Installation

npm i postxml-icon --save-dev

Usage

Postxml

Example

Input

<icon class="icon">name</icon>

Output

<svg class="icon">
	<use xlink:href="#icon--name"></use>
</svg>

Example (inline)

Sprite should be inline!

Input

<icon class="icon" inline>name</icon>
<svg>
	<symbol id="icon--name">
		<path d="0,0 100, 100"></path>
	</symbol>
</svg>

Output

<svg class="icon">
	<path d="0,0 100, 100"></path>
</svg>

Licence

MIT

About

PostXML plugin better svg icons usage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published