29 lines
509 B
Text
29 lines
509 B
Text
// templui component skeleton - version: v0.84.0 installed by templui v0.84.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>
|
|
}
|