text

package
v1.108.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Success   = charm.NewStyle(lipgloss.NewStyle().Foreground(charm.Colors.Success))
	Warning   = charm.NewStyle(lipgloss.NewStyle().Foreground(charm.Colors.Warning))
	Error     = charm.NewStyle(lipgloss.NewStyle().Foreground(charm.Colors.Error))
	Highlight = charm.NewStyle(lipgloss.NewStyle().Foreground(charm.Colors.Highlight))
	Muted     = charm.NewStyle(lipgloss.NewStyle().Foreground(charm.Colors.Muted))

	Bold      = charm.NewStyle(lipgloss.NewStyle().Bold(true))
	Underline = charm.NewStyle(lipgloss.NewStyle().Underline(true))
)
View Source
var (
	// Checkmark is a checkmark icon.
	Checkmark = NewStyled("✔")
	// Crossmark is a crossmark icon.
	Crossmark = NewStyled("✘")
	// Astreisk is a astreisk icon.
	Astreisk = NewStyled("✱")
	// PromptPrefix is a prompt-prefix icon.
	PromptPrefix = NewStyled("❯")
	// PointerUpCharacter is an up pointer icon.
	PointerUp = NewStyled("▴")
	// PointerRightCharacter is a right pointer icon.
	PointerRight = NewStyled("▸")
	// PointerDownCharacter is a down pointer icon.
	PointerDown = NewStyled("▾")
	// PointerLeftCharacter is a left pointer icon.
	PointerLeft = NewStyled("◂")
)

Functions

This section is empty.

Types

type Styled

type Styled struct {
	// contains filtered or unexported fields
}

func NewStyled

func NewStyled(s string) Styled

NewStyled builds a new styled text component.

func (Styled) Error

func (t Styled) Error() Styled

func (Styled) Highlight

func (t Styled) Highlight() Styled

func (Styled) Inherit

func (t Styled) Inherit(styles ...charm.Style) Styled

func (Styled) Muted

func (t Styled) Muted() Styled

func (Styled) String

func (t Styled) String() string

func (Styled) Success

func (t Styled) Success() Styled

func (Styled) Warning

func (t Styled) Warning() Styled

Jump to

Keyboard shortcuts

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