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
| Method | Description |
|---|---|
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) | |
SideSVG(svg core.SVG) | |
SideView(img core.View) | |
Subtitle(text string) | Subtitle sets the subtitle text of the hero section. |
SubtitleView(subtitle core.View) | |
TextColor(color ui.Color) |