main
HerrHase 2 years ago
parent 91a3eac892
commit 54e80f4fbe

@ -1,2 +1,7 @@
# raw
Shows unescaped Html.
```
<tiny-raw html={ htmlString }></tiny-raw>
```

@ -0,0 +1,11 @@
{
"name": "@tiny-components/raw",
"version": "0.1.0",
"description": "Component to show unescaped Html",
"repository": {
"type": "git",
"url": "git@gitea.node001.net:tiny-components/raw.git"
},
"author": "Björn Hase",
"license": "MIT"
}

@ -0,0 +1,22 @@
<tiny-raw>
/**
* tiny raw
*
*/
<script>
export default {
setInnerHTML() {
this.root.innerHTML = this.props.html
},
onMounted() {
this.setInnerHTML()
},
onUpdated() {
this.setInnerHTML()
}
}
</script>
</tiny-raw>
Loading…
Cancel
Save