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)
BackgroundColor(color ui.Color)
BackgroundImage(img core.URI)BackgroundImage places a fit-cover image into the background.
ForegroundColor(col ui.Color)
ForegroundColorAdaptive(onDark ui.Color, onLight ui.Color)
Frame(frame ui.Frame)Frame sets the frame of the hero section.
Padding(padding ui.Padding)
SideImage(img ui.TImage)SideImage sets a side image for the hero section, which is displayed alongside the text content.
SideSVG(svg core.SVG)
SideView(img core.View)
Subtitle(text string)Subtitle sets the subtitle text of the hero section.
SubtitleView(view core.View)
TextColor(color ui.Color)
contentWidth(winfo core.WindowInfo)
minHeight(winfo core.WindowInfo)
titleFont(winfo core.WindowInfo)