D3vugu-components/components/view/code.vugu

29 lines
583 B
Plaintext
Raw Permalink Normal View History

<div vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-1683741854 d3c-color-layer-1"}'>
2023-05-08 18:43:07 +00:00
<vg-comp expr="c.DefaultSlot"></vg-comp>
</div>
<style>
.d3c-1683741854 {
2023-05-08 18:43:07 +00:00
border-radius: 4px;
2023-05-18 14:38:27 +00:00
overflow: auto;
padding: 0.5em;
margin: 1em 0;
2023-05-08 18:43:07 +00:00
font-family: monospace;
background-color: var(--d3c-color-background);
color: var(--d3c-color-text);
2023-05-08 18:43:07 +00:00
}
</style>
<script type="application/x-go">
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
"github.com/vugu/vugu"
)
type Code struct {
AttrMap vugu.AttrMap
DefaultSlot vugu.Builder
}
</script>