grid

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Grid

func Grid(p GridProps) templ.Component

Grid renders a display:grid container.

func GridClasses

func GridClasses(p GridProps) string

func GridCol

func GridCol(p GridColProps) templ.Component

GridCol renders one grid column child.

func GridColClasses

func GridColClasses(p GridColProps) string

Types

type GridColProps

type GridColProps struct {
	Class string
	Span  int
	Start int
	End   int
	Order int
}

GridColProps configures a single grid cell or track child.

type GridProps

type GridProps struct {
	Class string
	Cols  string
}

GridProps configures the grid container classes.

Jump to

Keyboard shortcuts

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