mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-03 01:41:44 +00:00
18 lines
773 B
Templ
18 lines
773 B
Templ
package ui
|
|||
|
|
|
||
|
|
// Variant is a component that has attributes
|
||
|
|
type Variant interface {
|
||
|
|
Attributes() templ.Attributes
|
||
|
|
}
|
||
|
|
|
||
|
|
// ╭───────────────────────────────────────────────────────────╮
|
||
|
|
// │ General Layout Components │
|
||
|
|
// ╰───────────────────────────────────────────────────────────╯
|
||
|
|
|
||
|
|
// Columns is a component that renders a flex container with a gap of 3 and a max width of 100%
|
||
|
|
templ Columns() {
|
||
|
|
<div class="flex flex-col h-full w-full gap-3 md:gap-6 md:flex-row">
|
||
|
|
{ children... }
|
||
|
|
</div>
|
||
|
|
}
|