Skip to content
This repository has been archived by the owner on Oct 30, 2022. It is now read-only.

Latest commit

 

History

History
48 lines (30 loc) · 1.86 KB

svg.md

File metadata and controls

48 lines (30 loc) · 1.86 KB

SVG

Simple wrapper for SVG XML.

This is a low-level and simple module for handling SVGs. If you want to use SVG for icons, the best method is to use Icon directly.

Usage

Options

Common component options

Parameter Required Type Default Description
after optional String, hyperscript or component Extra content after main content; note that this content is placed right of preceding elements with a higher stacking depth
before optional String, hyperscript or component Extra content before main content; note that this content is placed left of subsequent elements with a lower stacking depth
className optional String Extra CSS class appended to pe-svg
content use content or children String, hyperscript or component SVG content
element optional String "div" HTML element tag
id optional String HTML element id
style optional Object For setting simple style attributes
tone optional String: "dark" or "light" Renders the component light on dark (sets class pe-dark-tone); use "light" to locally inverse (sets class pe-light-tone)

CSS classes