Documentation
¶
Index ¶
- Constants
- Variables
- func Angle(angle float64) func(any)
- func Beat(options ...func(any)) e.ParentModifier
- func BeatFade(options ...func(any)) e.ParentModifier
- func BorderColor(value string) e.Styles
- func BorderPadding(value string) e.Styles
- func BorderRadius(value string) e.Styles
- func BorderStyle(value string) e.Styles
- func BorderWidth(value string) e.Styles
- func Bounce(options ...func(any)) e.ParentModifier
- func CSSHead(basePath string) any
- func Delay(d time.Duration) func(a any)
- func DirectionAlternate(a any)
- func DirectionAlternateReverse(a any)
- func DirectionNormal(a any)
- func DirectionReverse(a any)
- func DuoColors(primary, secondary string) e.Styles
- func DuoOpacities(primary, secondary float64) e.Styles
- func Duration(d time.Duration) func(a any)
- func FA(style Style, name string, children ...any) e.Element
- func Fade(options ...func(any)) e.ParentModifier
- func Flip(options ...func(any)) e.ParentModifier
- func Height(height float64) func(any)
- func Icon(style Style, name string, children ...any) e.Element
- func InverseColor(value string) e.Styles
- func IterationCount(c float64) func(a any)
- func JumpScaleX(scale float64) func(any)
- func JumpScaleY(scale float64) func(any)
- func LandScaleX(scale float64) func(any)
- func LandScaleY(scale float64) func(any)
- func Li(style Style, name string, children ...any) e.Element
- func MaxScale(scale float64) func(any)
- func MinOpacity(opacity float64) func(any)
- func OList(children ...any) e.Element
- func OnFA(children ...any) onFA
- func OnIcon(children ...any) onIcon
- func PrimaryColor(value string) e.Styles
- func PrimaryOpacity(value float64) e.Styles
- func PullMargin(value string) e.Styles
- func Pulse(a any)
- func Rebound(rebound float64) func(any)
- func Reverse(a any)
- func SecondaryColor(value string) e.Styles
- func SecondaryOpacity(value float64) e.Styles
- func Shake(options ...func(any)) e.ParentModifier
- func Spin(options ...func(any)) e.ParentModifier
- func Stack(children ...any) e.Element
- func StartScaleX(scale float64) func(any)
- func StartScaleY(scale float64) func(any)
- func TimingEase(a any)
- func TimingEaseIn(a any)
- func TimingEaseInOut(a any)
- func TimingEaseOut(a any)
- func TimingLinear(a any)
- func TimingStepEnd(a any)
- func TimingStepStart(a any)
- func UList(children ...any) e.Element
- func X(x float64) func(any)
- func Y(y float64) func(any)
- func Z(z float64) func(any)
- func ZIndex(value int) e.Styles
- type Animation
- type Class
- type Rotate
- type Style
Constants ¶
const ( Border = Class("fa-border") PullLeft = Class("fa-pull-left") PullRight = Class("fa-pull-right") )
const ( Brand = Style("fa-brands") Duotone = Style("fa-duotone") Light = Style("fa-light") SharpLight = Style("fa-sharp fa-light") Regular = Style("fa-regular") SharpRegular = Style("fa-sharp fa-regular") Solid = Style("fa-solid") SharpSolid = Style("fa-sharp fa-solid") Thin = Style("fa-thin") SharpThin = Style("fa-sharp fa-thin") )
Styles
const ( Rotate90 = rotateOrFlip("fa-rotate-90") Rotate180 = rotateOrFlip("fa-rotate-180") Rotate270 = rotateOrFlip("fa-rotate-270") FlipHorizontal = rotateOrFlip("fa-flip-horizontal") FlipVertical = rotateOrFlip("fa-flip-vertical") FlipBoth = rotateOrFlip("fa-flip-both") )
Rotation (see https://fontawesome.com/docs/web/style/rotate)
const ( Stack1x = Class("fa-stack-1x") Stack2x = Class("fa-stack-2x") Inverse = Class("fa-inverse") )
const (
FixedWidth = Class("fa-fw")
)
Variations
const (
SwapOpacity = Class("fa-swap-opacity")
)
Variables ¶
var ( Size2Xs = Class("fa-2xs") SizeXs = Class("fa-xs") SizeSm = Class("fa-sm") SizeLg = Class("fa-lg") SizeXl = Class("fa-xl") Size2Xl = Class("fa-2xl") )
Font Awesome icons sizes
var Assets embed.FS
var CSSHandler = http.FileServer(http.FS(Assets))
CSSHandler is a http handler function for Font Awesome assets.
Functions ¶
func Beat ¶
func Beat(options ...func(any)) e.ParentModifier
func BeatFade ¶
func BeatFade(options ...func(any)) e.ParentModifier
func BorderColor ¶ added in v0.5.0
func BorderPadding ¶ added in v0.5.0
func BorderRadius ¶ added in v0.5.0
func BorderStyle ¶ added in v0.5.0
func BorderWidth ¶ added in v0.5.0
func Bounce ¶
func Bounce(options ...func(any)) e.ParentModifier
func CSSHead ¶ added in v0.1.1
CSSHead returns head section elements for the Font Awesome CSS at the provided base path, for inclusion as a child of b.HTML.
func DirectionAlternate ¶ added in v0.5.0
func DirectionAlternate(a any)
func DirectionAlternateReverse ¶ added in v0.5.0
func DirectionAlternateReverse(a any)
func DirectionNormal ¶ added in v0.5.0
func DirectionNormal(a any)
func DirectionReverse ¶ added in v0.5.0
func DirectionReverse(a any)
func DuoOpacities ¶ added in v0.11.0
func FA ¶
FA returns a Font Awesome icon, in an i element, with the provided style and name (without the "fa-" prefix).
// https://willoma.github.io/bulma-gomponents/icon.html#font-awesome
func Fade ¶
func Fade(options ...func(any)) e.ParentModifier
func Flip ¶
func Flip(options ...func(any)) e.ParentModifier
func Icon ¶
Icon returns a Font Awesome icon, in an i element within a b.Icon element, with the provided style and name (without the "fa-" prefix).
// https://willoma.github.io/bulma-gomponents/icon.html#font-awesome
func InverseColor ¶ added in v0.5.0
InverseColor sets the color of an inversed stacked icon.
func IterationCount ¶ added in v0.5.0
func JumpScaleX ¶ added in v0.5.0
func JumpScaleY ¶ added in v0.5.0
func LandScaleX ¶ added in v0.5.0
func LandScaleY ¶ added in v0.5.0
func Li ¶
Li returns a list element with custom bullet in a UList or a OList, with the provided style and name (without the "fa-" prefix).
- when a child is a Class, it is added to the icon
- when a child is a color, its text variant is applied to the icon (in order ti apply the color to the entire line, you must use the Text* variant)
- when a child is a rotation or animation, it is applied to the icon
- all other children types are added to the li
func MinOpacity ¶ added in v0.5.0
func PrimaryColor ¶ added in v0.5.0
func PrimaryOpacity ¶ added in v0.5.0
func PullMargin ¶ added in v0.5.0
func SecondaryColor ¶ added in v0.5.0
func SecondaryOpacity ¶ added in v0.5.0
func Shake ¶
func Shake(options ...func(any)) e.ParentModifier
func Spin ¶
func Spin(options ...func(any)) e.ParentModifier
func StartScaleX ¶ added in v0.5.0
func StartScaleY ¶ added in v0.5.0
func TimingEase ¶ added in v0.5.0
func TimingEase(a any)
func TimingEaseIn ¶ added in v0.5.0
func TimingEaseIn(a any)
func TimingEaseInOut ¶ added in v0.5.0
func TimingEaseInOut(a any)
func TimingEaseOut ¶ added in v0.5.0
func TimingEaseOut(a any)
func TimingLinear ¶ added in v0.5.0
func TimingLinear(a any)
func TimingStepEnd ¶ added in v0.5.0
func TimingStepEnd(a any)
func TimingStepStart ¶ added in v0.5.0
func TimingStepStart(a any)
Types ¶
type Class ¶ added in v0.2.0
type Class string