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
}
Click to show internal directories.
Click to hide internal directories.