lotusui
A Go design system for desktop and mobile — one codebase, native apps. Web when you want it.
GitHub

Separator

The semantic divider: a 1dp hairline, horizontal or vertical.

Visually separates content — shadcn Separator. Separator / SeparatorVertical are the component form of Hairline / VerticalHairline (same paint; prefer the Separator names in app code).

Installation

Use the module import (the default), or own the source: lotusui add vendors the component into your app and lotusui update keeps the copy mergeable — see Registry.

Go
go get github.com/ikaito-com/lotusui

# or vendor the source into your app:
go run github.com/ikaito-com/lotusui/cmd/lotusui add separator

Usage

open demo ↗

List

Inline items divided by vertical rules.

open demo ↗

Hairline aliases

Hairline / VerticalHairline are the low-level primitives (components.go). Separator sets Min.X = Max.X then calls Hairline; SeparatorVertical is an alias of VerticalHairline. Use Separator in screens; Hairline remains for internal/composed chrome (tables, menus).

Go
lotusui.Hairline(th)         // ≡ Separator without forcing Min.X
lotusui.VerticalHairline(th) // ≡ SeparatorVertical

API

OptionTypeDescription
Separator(th)widgetThe horizontal 1dp rule (forces full width).
SeparatorVertical(th)widgetDivides horizontal siblings.
Hairline(th) / VerticalHairline(th)widgetLow-level aliases; prefer Separator in app code.

lotusui is a Go design system for native desktop and mobile — and the web when you want it. Docs demos are the real components (WebAssembly) — one gallery app, each Preview an iframe addressed by URL hash.