Documentation ¶ Overview ¶ templ: version: v0.2.793 Index ¶ func C(def D) templ.Component type D type Type func (i Type) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func C ¶ func C(def D) templ.Component Types ¶ type D ¶ type D struct { Type Type Link string Size size.Size // CustomStyle defines a custom style. // style.Custom{ // "social": style.D{style.Add("...")}, // } CustomStyle style.Custom } D is a button.D preset that renders social links. type Type ¶ type Type int const ( Facebook Type = iota Instagram Github Twitch LinkedIn Youtube Dribble ) func (Type) String ¶ added in v0.3.1 func (i Type) String() string Source Files ¶ View all Source files social.go social_templ.go type_string.go Click to show internal directories. Click to hide internal directories.