Matthew Stobbs
9c35be1fcf
- made multiple components for reuse in templ - going to start on actual data displaying templates
15 lines
265 B
Plaintext
15 lines
265 B
Plaintext
package components
|
|
|
|
templ FlexRow(wrap bool, comps ...templ.Component) {
|
|
<div class={
|
|
"flex",
|
|
templ.KV("flex-nowrap", !wrap),
|
|
templ.KV("flex-wrap", wrap),
|
|
templ.KV("md:flex-nowrap", wrap)
|
|
}>
|
|
for _, cmp := range comps {
|
|
@cmp
|
|
}
|
|
</div>
|
|
}
|