separator

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SeparatorFixtures = gx.Fixtures[SeparatorProps]{
	"Horizontal": {Decorative: true, Class: "w-40"},
	"Vertical":   {Decorative: true, Orientation: Vertical, Class: "h-8"},
	"Semantic":   {Class: "w-40"},
}

Functions

func Separator

func Separator(p SeparatorProps) gx.Node

Types

type Orientation

type Orientation string

Orientation is the direction of a separator.

const (
	Horizontal Orientation = "horizontal"
	Vertical   Orientation = "vertical"
)

The orientations of separator.Separator.

type SeparatorProps

type SeparatorProps struct {
	// Orientation sets the direction: Horizontal or Vertical.
	Orientation Orientation
	// Decorative hides the separator from assistive technology. Set it to false for the separator
	// role.
	Decorative bool
	// Class adds classes to the root element.
	Class string
	// Attrs adds HTML attributes to the root element.
	Attrs gx.Attrs
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL