// templui component aspectratio - version: main installed by templui v0.71.0 package aspectratio import "git.jmbit.de/jmb/scanfile/server/web/templui/utils" type Ratio string const ( RatioAuto Ratio = "auto" RatioSquare Ratio = "square" RatioVideo Ratio = "video" RatioPortrait Ratio = "portrait" RatioWide Ratio = "wide" ) type Props struct { ID string Class string Attributes templ.Attributes Ratio Ratio } templ AspectRatio(props ...Props) { {{ var p Props }} if len(props) > 0 { {{ p = props[0] }} }