kf

package
v0.0.0-...-f1543bd Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppBody

func AppBody() *ui.Element

func Button

func Button(text string) *ui.Element

func ButtonDanger

func ButtonDanger(text string) *ui.Element

func ButtonIcon

func ButtonIcon(text string, iconSource string) *ui.Element

func Code

func Code(lang string, code string) *ui.Element

Code creates a code block with syntax highlighting. This depends on the Prism.js library.

func Dropdown(options []string) *ui.Element

func Fieldset

func Fieldset(legend string, content *ui.Element) *ui.Element

Fieldset creates a fieldset element with the given legend and content.

func FooterSimple

func FooterSimple(content string) *ui.Element

FooterSimple creates a footer with text content.

func Form

func Form() *ui.Element

func Group

func Group(content ...*ui.Element) *ui.Element

Group creates a div element with the given content.

func GroupClass

func GroupClass(class string, content ...*ui.Element) *ui.Element

GroupClass creates a div element with the given class and content.

func Header1

func Header1(text string) *ui.Element

Header1 creates an h1 element with the given text content.

func Header2

func Header2(text string) *ui.Element

Header2 creates an h2 element with the given text content.

func Header3

func Header3(text string) *ui.Element

Header3 creates an h3 element with the given text content.

func HeaderBar

func HeaderBar(logo *ui.Element, links []KeyValue) *ui.Element

func HorizontalRule

func HorizontalRule() *ui.Element

func Input

func Input(placeholder string) *ui.Element
func Link(text string, url string) *ui.Element

Link creates an anchor element with the given text content and URL.

func List

func List(items ...*ui.Element) *ui.Element

func Panel

func Panel(content ...*ui.Element) *ui.Element

Panel creates a div element with the given content & the "panel" class.

func Paragraph

func Paragraph(text string) *ui.Element

Paragraph creates a p element with the given text content.

func Placeholder

func Placeholder(path string) *ui.Element

func Spinner

func Spinner(text string) *ui.Element

func Text

func Text(text string) *ui.Element

Text creates a span element with the given text content.

func TitleLogo(text string, logoSrc string) *ui.Element

func VerticalRule

func VerticalRule() *ui.Element

Types

type KeyValue

type KeyValue struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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