table

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Table

func Table(p TableProps) templ.Component

Table renders the root table element.

func TableBody

func TableBody(p TableSectionProps) templ.Component

TableBody renders tbody section.

func TableCaption

func TableCaption(p TableCaptionProps) templ.Component

TableCaption renders the table caption.

func TableCell

func TableCell(p TableCellProps) templ.Component

TableCell renders td with colspan and rowspan.

func TableCol

func TableCol(p TableColProps) templ.Component

TableCol renders a single col definition.

func TableColGroup

func TableColGroup(p TableColGroupProps) templ.Component

TableColGroup renders colgroup with optional span.

func TableFoot

func TableFoot(p TableSectionProps) templ.Component

TableFoot renders tfoot section.

func TableHead

func TableHead(p TableSectionProps) templ.Component

TableHead renders thead section.

func TableHeadCell

func TableHeadCell(p TableCellProps) templ.Component

TableHeadCell renders th with optional scope and abbr.

func TableRow

func TableRow(p TableRowProps) templ.Component

TableRow renders one tr row.

Types

type TableCaptionProps

type TableCaptionProps struct {
	Class string
}

TableCaptionProps configures caption styling.

type TableCellProps

type TableCellProps struct {
	Class string
	// Scope — th scope: col, row, colgroup, rowgroup
	Scope   string
	ColSpan int
	RowSpan int
	// Headers — ids of related header cells
	Headers string
	// Abbr — abbreviated header text for th
	Abbr string
}

TableCellProps configures th or td cells.

type TableColGroupProps

type TableColGroupProps struct {
	Class string
	Span  int
}

TableColGroupProps configures colgroup span.

type TableColProps

type TableColProps struct {
	Class string
	Span  int
}

TableColProps configures a single col element.

type TableProps

type TableProps struct {
	Class string
	Attrs templ.Attributes
}

TableProps configures the root table element.

type TableRowProps

type TableRowProps struct {
	Class string
}

TableRowProps configures one table row.

type TableSectionProps

type TableSectionProps struct {
	Class string
}

TableSectionProps configures thead, tbody, or tfoot.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL