Skip to content

Commit

Permalink
fix(examples): add SVG example
Browse files Browse the repository at this point in the history
  • Loading branch information
P0lip committed May 3, 2018
1 parent a351395 commit 72a98d7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions example/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,27 @@ class Test extends React.Component {
</div>
</pre>
</div>
<div className="section">
<h4 className='title'>Test SVG</h4>
<p className="sub-title"></p>
<div className="example-jsx">
<div className="side">
<svg data-tip="=( •̀д•́)" data-for="svgTooltip" width="50" height="50">
<circle cx="25" cy="25" r="22" fill="#fff" stroke="#000" stroke-width="4"/>
</svg>
<ReactTooltip id='svgTooltip'/>
</div>
</div>
<br/>
<pre className='example-pre'>
<div>
<p>{"<svg data-tip='=( •̀д•́)' data-for='svgTooltip' width='50' height='50'>\n" +
" <circle cx='25' cy='25' r='22' fill='#fff' stroke='#000' stroke-width='8'/>\n" +
"</svg>\n" +
"<ReactTooltip id='svgTooltip' />"}</p>
</div>
</pre>
</div>
</section>
</div>
)
Expand Down

0 comments on commit 72a98d7

Please sign in to comment.