// templui component breadcrumb - version: v0.84.0 installed by templui v0.84.0 package breadcrumb import ( "git.jmbit.de/jmb/scanfile/server/web/templui/components/icon" "git.jmbit.de/jmb/scanfile/server/web/templui/utils" ) type Props struct { ID string Class string Attributes templ.Attributes } type ListProps struct { ID string Class string Attributes templ.Attributes } type ItemProps struct { ID string Class string Attributes templ.Attributes Current bool } type LinkProps struct { ID string Class string Attributes templ.Attributes Href string } type SeparatorProps struct { ID string Class string Attributes templ.Attributes UseCustom bool } templ Breadcrumb(props ...Props) { {{ var p Props }} if len(props) > 0 { {{ p = props[0] }} } } templ List(props ...ListProps) { {{ var p ListProps }} if len(props) > 0 { {{ p = props[0] }} }
    { children... }
} templ Item(props ...ItemProps) { {{ var p ItemProps }} if len(props) > 0 { {{ p = props[0] }} }
  • { children... }
  • } templ Link(props ...LinkProps) { {{ var p LinkProps }} if len(props) > 0 { {{ p = props[0] }} } { children... } } templ Separator(props ...SeparatorProps) { {{ var p SeparatorProps }} if len(props) > 0 { {{ p = props[0] }} } if p.UseCustom { { children... } } else { @icon.ChevronRight(icon.Props{Size: 14, Class: "text-muted-foreground"}) } } templ Page(props ...ItemProps) { {{ var p ItemProps }} if len(props) > 0 { {{ p = props[0] }} } { children... } }