The b.Hero
constructor creates a hero.
Modifier | Action |
---|---|
b.Primary | Set color to primary |
b.Link | Set color to link |
b.Info | Set color to info |
b.Success | Set color to success |
b.Warning | Set color to warning |
b.Danger | Set color to danger |
b.Small | Set size to small |
b.Medium | Set size to medium |
b.Large | Set size to large |
b.HalfHeight | Set size to 50% of the height of the viewport |
b.FullHeight | Set size to 100% of the height of the viewport |
b.FullHeightWithNavbar | Set size to 100% of the height of the viewport minus the navbar height |
Child | Action |
---|---|
b.OnSection(...any) | Apply children to the <section class="hero"> element |
b.OnBody(...any) | Apply children to the <div class="hero-body"> element |
b.HeroHead(...any) | Apply children to the <div class="hero-head"> element |
b.HeroFoot(...any) | Apply children to the <div class="hero-foot"> element |
e.Element | Add element to the <div class="hero-body"> element |
gomponents.Node of type gomponents.AttributeType | Apply attribute to the <section class="hero"> element |
gomponents.Node of type gomponents.ElementType | Add element to the <div class="hero-body"> element |
Anything else | Apply child to the <section class="hero"> element |
The head, body and foot elements are created only if at least one child has been provided for the part.