sg-example
v1.1.0
Published
Display example-code in styleguides
Downloads
15
Maintainers
Readme
sg-example
A web component for displaying code examples in styleguides.
Maintained by Sigurd Fosseng.
Demo
Usage
<style>
nav {
border: 1px solid #ddd;
}
li {
background-color: #fff;
color: #f43;
}
</style>
<sg-example>
<nav>
<ul>
<li>example element 1</li>
<li>example element 2</li>
</ul>
</nav>
</sg-example>
Gives this output:
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
License
MIT © Sigurd Fosseng