utils

package
v0.0.0-...-942a3ab Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PasswordPlaceholder = "correct horse battery staple"
	DomainPlaceholder   = "https://example.com"
)

Variables

View Source
var (
	Magenta = gloss.Color("13")
	Purple  = gloss.Color("5")
	Gray    = gloss.Color("8")
	Red     = gloss.Color("1")
	Yellow  = gloss.Color("3")
	Green   = gloss.Color("2")
)

Functions

func Button

func Button(highlighted bool) gloss.Style

func Error

func Error(msg string) string

func NextPhase

func NextPhase() tea.Msg

func PrevPhase

func PrevPhase() tea.Msg

func TextInput

func TextInput(placeholder string, hidden bool) textinput.Model

func Title

func Title() gloss.Style

Types

type NextPhaseMsg

type NextPhaseMsg struct{}

type PrevPhaseMsg

type PrevPhaseMsg struct{}

Jump to

Keyboard shortcuts

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