- modal.css + modal.templ: backdrop/panel structure, Title/Body/Actions props - empty-state.css + empty_state.templ: dashed border, nil-guarded Icon/Action - table.css + table.templ: ui-table-shell wrapper, Head/Body typed props - All 6 TestModal/TestEmptyState/TestTable tests pass; full suite green
23 lines
340 B
Text
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>
|
|
}
|