Separator

En/ Ru

Separator

Визуальный разделитель между секциями.

github.com/fastygo/templ/ui

Визуальный разделитель между секциями.

По умолчанию

Сверху

Снизу

import "github.com/fastygo/templ/ui"

templ Example() {
	@ui.Stack(ui.StackProps{Class: "gap-2 max-w-md"}) {
		@ui.Text(ui.TextProps{}, "Сверху")
		@ui.Box(ui.BoxProps{Class: "h-px w-full bg-border", Attrs: templ.Attributes{"role": "separator"}})
		@ui.Text(ui.TextProps{}, "Снизу")
	}
}

API

Class · string — Обычно h-px bg-border

Role · string — separator