Link
Link component display a link.
The link text supports emoji shortcodes, the url does not.
API
func Link(c *tgframe.Container, text, url string, conf ...*LinkConf)
cis Parent container.textis the link text.urlis the link url.confis an optional configuration, at most one.
// LinkConf is the configuration for the Link component.
type LinkConf struct {
tgframe.Base // ID
}
Example
tgcomp.Link(p.Main, "Link", "https://www.example.com/")
