Caption
Caption component displays a small dimmed text, for a note next to what it explains.
The text supports emoji shortcodes.
API
func Caption(c *tgframe.Container, text string, conf ...*CaptionConf)
cis Parent container.textis the caption text.confis an optional configuration, at most one.
// CaptionConf is the configuration for the Caption component.
type CaptionConf struct {
tgframe.Base // ID
}
Example
tgcomp.Caption(p.Main, "Caption")
