@web-component/code-flask
v0.0.1
Published
A web-component for easily creating code editors with CodeFlask.
Downloads
2
Readme
@web-component/code-flask
A web-component for easily creating code editors with CodeFlask.
Props
| name | type | default | required |
| ----------- | --------- | ------- | -------- |
| language | string
| ✖
| yes |
| lineNumbers | boolean
| false
| no |
| rtl | boolean
| false
| no |
Usage
Add code-flask
web-component to your index.html
.
<script src='https://unpkg.com/@web-component/[email protected]/dist/code-flask.js'></script>
Use it in your app.
<code-flask language="js" line-numbers="true" rtl="true">
const foo = { name: 'fooby' }
</code-flask>