Coffee journaling on ATProto (alpha) alpha.arabica.social
coffee
at main 22 lines 503 B view raw
1package components 2 3// CardProps defines properties for a card container 4type CardProps struct { 5 Class string // Additional CSS classes 6 InnerCard bool // Whether to use "card-inner" styling 7} 8 9// Card renders a card container with optional inner styling 10templ Card(props CardProps, content templ.Component) { 11 <div 12 class={ 13 templ.Classes( 14 templ.KV("card", true), 15 templ.KV("card-inner", props.InnerCard), 16 templ.KV(props.Class, props.Class != ""), 17 ) 18 } 19 > 20 @content 21 </div> 22}