{{ $error := false -}} {{ if partial "utilities/IsInvalidArgs.html" (dict "structure" "button-group" "args" .Params) }} {{ errorf "Invalid arguments: %s" .Position -}} {{ $error = true }} {{ end }} {{ $label := .Get "label" | default (.Get "aria-label") }} {{ $inner := .Scratch.Get "inner" }} {{ $input := trim .Inner " \r\n" }} {{ if $input }} {{ $input = replace $input "\n" "\n " }} {{ warnf "Unexpected inner content: %s\r\n %s" .Position $input }} {{ end }} {{ if not $error }}
{{ $inner | safeHTML }}
{{ end }}