D3vugu-components/components/layout/container-horizontal.vugu

28 lines
606 B
Plaintext
Raw Permalink Normal View History

2023-05-28 11:52:21 +00:00
<div vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-1685274222"}'>
<vg-comp expr="c.DefaultSlot"></vg-comp>
</div>
<style>
.d3c-1685274222 {
display: flex;
flex-wrap: wrap;
gap: 0.5em;
margin: 0.5em 0;
}
</style>
<script type="application/x-go">
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
"github.com/vugu/vugu"
)
// ContainerHorizonal arranges all contained elements in one row.
// This can be used to create a menu bar out of buttons.
type ContainerHorizontal struct {
AttrMap vugu.AttrMap
DefaultSlot vugu.Builder `vugu:"data"`
}
</script>