Documentation ¶
Overview ¶
templ: version: v0.2.793
Index ¶
Constants ¶
View Source
const ( StyleSticky style.Style = 1 << 8 StyleBorder style.Style = 1 << 9 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type D ¶
type D struct { Style style.Style //playground:default:templ.Raw("© 2024 Jean-François Bustarret. All Rights Reserved.") Copyright templ.Component Brand templ.Component // Sections can either be a []section.D or a []a.D slice. //playground:import:github.com/jfbus/templui/components/a //playground:import:github.com/jfbus/templui/components/footer/section //playground:default:[]section.D{{Title:"Section 1", Links: []a.D{{Text: "Link 1"},{Text: "Link 2"}}}, {Title:"Section 2", Links: []a.D{{Text: "Link 1"},{Text: "Link 2"}}}, {Title:"Section 3", Links: []a.D{{Text: "Link 1"},{Text: "Link 2"}}}} Sections any Social []social.D // CustomStyle defines a custom style. // style.Custom{ // "footer": style.D{style.Add("...")}, // "footer/content": style.D{style.Add("...")}, // "footer/social": style.D{style.Add("...")}, // "footer/separator": style.D{style.Add("...")}, // "footer/copyright": style.D{style.Add("...")}, // "footer/footer": style.D{style.Add("...")}, // "footer/section/link": style.D{style.Add("...")}, // "footer/section/title": style.D{style.Add("...")}, // } CustomStyle style.Custom }
D defines a navbar component. To add multiple components (buttons, dropdowns, ...) to a section, use div.C/components.Append.
Click to show internal directories.
Click to hide internal directories.