// templui component carousel - version: v0.84.0 installed by templui v0.84.0 package carousel import ( "fmt" "git.jmbit.de/jmb/scanfile/server/web/templui/components/icon" "git.jmbit.de/jmb/scanfile/server/web/templui/utils" "strconv" ) type Props struct { ID string Class string Attributes templ.Attributes Autoplay bool Interval int Loop bool } type ContentProps struct { ID string Class string Attributes templ.Attributes } type ItemProps struct { ID string Class string Attributes templ.Attributes } type PreviousProps struct { ID string Class string Attributes templ.Attributes } type NextProps struct { ID string Class string Attributes templ.Attributes } type IndicatorsProps struct { ID string Class string Attributes templ.Attributes Count int } templ Carousel(props ...Props) { {{ var p Props }} if len(props) > 0 { {{ p = props[0] }} }