xtablo-source/deprecated/internal/web/ui/table.templ
Arthur Belleville 5d0c201e86
Some checks failed
backend-ci / Backend tests (pull_request) Failing after 53s
backend-ci / Backend tests (push) Failing after 1s
Some work
2026-05-23 17:26:01 +02:00

23 lines
340 B
Text

package ui
type TableProps struct {
Head templ.Component
Body templ.Component
}
templ Table(props TableProps) {
<div class="ui-table-shell">
<table class="ui-table">
<thead>
if props.Head != nil {
@props.Head
}
</thead>
<tbody>
if props.Body != nil {
@props.Body
}
</tbody>
</table>
</div>
}