Hero

This component represents a prominent section with an image, title, subtitle, and optional action buttons.

Constructors

Hero

Hero creates a new THero with the given title and a default full-width height of 320.


Methods

MethodDescription
Actions(actions ...)Actions sets the action buttons or links of the hero section.
Alignment(alignment ui.Alignment)Alignment sets the Alignment of the THero element.
Frame(frame ui.Frame)Frame sets the frame of the hero section.
HeroType(t HeroType)HeroType sets the herotype of the THero element.
Subtitle(subtitle string)Subtitle sets the subtitle text of the hero section.
Teaser(img ui.DecoredView)Teaser sets the teaser image of the hero section.