Separator
Basic
Above the line.
Below the line.
// Package separator holds the site's example gsx components for
// ui/separator.
package separator
import "github.com/gsxhq/gsxui/ui"
// Basic renders a horizontal Separator between two lines of text.
component Basic() {
<div class="text-sm">
<p>Above the line.</p>
<ui.Separator class="my-4"/>
<p>Below the line.</p>
</div>
}
Orientation
gsxui
Real gsx components, not JSX facsimiles.
Docs
Components
GitHub
package separator
import "github.com/gsxhq/gsxui/ui"
// Orientation combines both orientations: a horizontal Separator under a
// heading block, then vertical Separators between an inline row of links.
component Orientation() {
<div>
<div class="space-y-1">
<h4 class="text-sm font-medium">gsxui</h4>
<p class="text-sm text-muted-foreground">Real gsx components, not JSX facsimiles.</p>
</div>
<ui.Separator class="my-4"/>
<div class="flex h-5 items-center gap-4 text-sm">
<div>Docs</div>
<ui.Separator orientation="vertical"/>
<div>Components</div>
<ui.Separator orientation="vertical"/>
<div>GitHub</div>
</div>
</div>
}