update templui components

This commit is contained in:
juancwu 2026-01-18 22:07:40 +00:00
commit 78047c7ee8
52 changed files with 162 additions and 123 deletions

View file

@ -1,4 +1,4 @@
// templui component table - version: v0.101.0 installed by templui v0.101.0
// templui component table - version: v1.2.0 installed by templui v1.2.0
// 📚 Documentation: https://templui.io/docs/components/table
package table
@ -58,17 +58,15 @@ templ Table(props ...Props) {
if len(props) > 0 {
{{ p = props[0] }}
}
<div class="relative w-full overflow-auto">
<table
if p.ID != "" {
id={ p.ID }
}
class={ utils.TwMerge("w-full caption-bottom text-sm", p.Class) }
{ p.Attributes... }
>
{ children... }
</table>
</div>
<table
if p.ID != "" {
id={ p.ID }
}
class={ utils.TwMerge("w-full caption-bottom text-sm", p.Class) }
{ p.Attributes... }
>
{ children... }
</table>
}
templ Header(props ...HeaderProps) {