mljr-ui · showcase

Background

Decorative CSS pattern layer. Dots, grid, lines, diagonal, cross, or gradient. Position absolute, pointer-events none.

layout background

Usage

// Inside a position:relative container
h.Div(h.Style("position:relative;height:200px;overflow:hidden"),
    layout.Background(layout.BackgroundProps{
        Pattern: layout.BGDots,
        Color:   "var(--line)",
        Opacity: 0.5,
    }),
    // ... your content above the background ...
)