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)
  • c is Parent container.
  • text is the caption text.
  • conf is 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")

caption component