// templui component card - version: v1.10.0 installed by templui v1.10.0 // 📚 Documentation: https://templui.io/docs/components/card package card import "github.com/fserg/md-to-html/internal/ui/utils" type Props struct { ID string Class string Attributes templ.Attributes } type HeaderProps struct { ID string Class string Attributes templ.Attributes } type TitleProps struct { ID string Class string Attributes templ.Attributes } type DescriptionProps struct { ID string Class string Attributes templ.Attributes } type ContentProps struct { ID string Class string Attributes templ.Attributes } type FooterProps struct { ID string Class string Attributes templ.Attributes } templ Card(props ...Props) { {{ var p Props }} if len(props) > 0 { {{ p = props[0] }} }
{ children... }
} templ Content(props ...ContentProps) { {{ var p ContentProps }} if len(props) > 0 { {{ p = props[0] }} }