scanfile/server/web/templui/components/skeleton/skeleton.templ
2025-06-03 15:44:56 +02:00

29 lines
506 B
Text

// templui component skeleton - version: main installed by templui v0.71.0
package skeleton
import "git.jmbit.de/jmb/scanfile/server/web/templui/utils"
type Props struct {
ID string
Class string
Attributes templ.Attributes
}
templ Skeleton(props ...Props) {
{{ var p Props }}
if len(props) > 0 {
{{ p = props[0] }}
}
<div
if p.ID != "" {
id={ p.ID }
}
class={
utils.TwMerge(
"animate-pulse rounded bg-muted",
p.Class,
),
}
{ p.Attributes... }
></div>
}