grid

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

templ: version: v0.3.977

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cell

func Cell(props CellProps, content elements.Items) templ.Component

Cell renders a Bulma `.cell` element.

func Grid

func Grid(props GridProps, content elements.Items) templ.Component

Grid renders a Bulma `.grid` container.

Types

type CellProps

type CellProps struct {
	// Attr contains additional HTML attributes
	// for the `.cell` element.
	//
	// Use this for:
	//   - cell span modifiers
	//   - alignment helpers
	//   - responsive behavior
	Attr templ.Attributes
}

Cell — Bulma Smart Grid cell. Atomic level: MOLECULE

Cell renders the Bulma `.cell` element, which defines a single grid item inside a Grid container.

type GridProps

type GridProps struct {
	// Attr contains additional HTML attributes
	// for the `.grid` container.
	//
	// Use this for:
	//   - grid modifiers (is-col-min-*, is-gap-*)
	//   - responsive classes
	//   - layout helpers
	Attr templ.Attributes
}

Grid — Bulma Smart Grid container. Atomic level: ORGANISM

Grid renders the Bulma `.grid` container, which is based on CSS Grid and provides automatic responsive behavior.

Grid does not define column sizes explicitly. All layout configuration is done via Bulma utility classes passed through Attr.

Jump to

Keyboard shortcuts

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