Title
Title component display a title.
The text supports emoji shortcodes: :tada: renders as 🎉.
API
func Title(c *tgframe.Container, text string, conf ...*TitleConf)
cis Parent container.textis the title text.confis an optional configuration, at most one.
// TitleConf is the configuration for the Title component.
type TitleConf struct {
tgframe.Base // ID
}
Example
tgcomp.Title(p.Main, "Title")
