D3vugu-components/components/input/button.vugu

53 lines
1.2 KiB
Plaintext
Raw Normal View History

<button vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-1633424238"}' @click="c.HandleClick(event)">
2023-05-08 18:43:07 +00:00
<vg-comp expr="c.SymbolSlot"></vg-comp><vg-comp expr="c.DefaultSlot"></vg-comp>
</button>
2023-05-08 18:43:07 +00:00
<style>
.d3c-1633424238 {
display: flex;
align-items: center;
gap: 0.5em;
text-decoration: none;
padding: 0.3em 0.5em;
margin: 0.5em 0;
2023-05-08 18:43:07 +00:00
border-radius: 4px;
border: 1px solid var(--d3c-color-border);
background-color: var(--d3c-color-background);
color: var(--d3c-color-text);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 1em;
font-family: "Segoe UI", sans-serif;
min-height: 2em;
user-select: none;
}
.d3c-1633424238.d3c-button-vertical {
flex-direction: column;
}
.d3c-1633357633-sidebar .d3c-1633424238, .d3c-1633357633-menu .d3c-1633424238 {
border: none;
background-color: transparent;
2023-05-08 18:43:07 +00:00
}
.d3c-1633424238:hover {
background-color: var(--d3c-color-hovered);
2023-05-08 18:43:07 +00:00
}
.d3c-1633424238:active {
background-color: var(--d3c-color-clicked);
2023-05-08 18:43:07 +00:00
}
.d3c-1633424238-selected {
background-color: var(--d3c-color-selected) !important;
}
</style>
<script type="application/x-go">
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
</script>