Table

Data tables with sortable columns via HTMX and empty state support.

Name Status Role
Alice Chen Active Admin
Bob Smith Invited Member
Carol White Inactive Viewer
Component
@table.Root(table.Props{}) {
    @table.Header() {
        @table.Row() {
            @table.Head("Name", "")
            @table.Head("Status", "")
            @table.Head("Role", "")
            @table.Head("Actions", "text-right")
        }
    }
    @table.Body() {
        @table.Row() {
            @table.Cell("Alice Chen", "font-medium")
            @table.CellSlot("") {
                @badge.Badge(badge.Props{Variant: badge.VariantSuccess, Dot: true}) { Active }
            }
            @table.Cell("Admin", "")
            @table.CellSlot("text-right") { ... }
        }
    }
}