lotusui the ikaito design language for Gio — desktop, mobile, web
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

Go
lotusui.Separator(th)          // horizontal
lotusui.SeparatorVertical(th)  // between row siblings

List

Inline items divided by vertical rules.

Go
// Blog | Docs | Source — SeparatorVertical between Rigid children

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.

Every demo on this site is the real Go component compiled to WebAssembly — one gallery app, one bundle, addressed by URL hash.