{{ $error := false }} {{ if partial "utilities/IsInvalidArgs.html" (dict "structure" "spinner" "args" .Params) }} {{ errorf "Invalid arguments: %s" .Position -}} {{ $error = true }} {{ end }} {{ $color := .Get "color" | default "primary" -}} {{ $grow := false -}} {{ with .Get "grow" }}{{ $grow = partial "utilities/CastBool.html" . }}{{ end -}} {{ $class := .Get "class" | default "" -}} {{ if not $error }} {{ with $class }}
{{ end }}
{{ trim .Inner " \r\n" | plainify -}}
{{ if $class }}
{{ end }} {{ end }}