fancytext

package
v0.0.0-...-e353533 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Content string
	Style   lipgloss.Style
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) (Model, error)

func (*Model) Init

func (m *Model) Init() tea.Cmd

func (*Model) Reset

func (m *Model) Reset()

func (*Model) SetHeight

func (m *Model) SetHeight(height int)

func (*Model) SetWidth

func (m *Model) SetWidth(width int)

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (subview.Model, tea.Cmd)

func (*Model) View

func (m *Model) View() string

type Option

type Option func(options *options) error

func WithContent

func WithContent(content string) Option

func WithFixedSize

func WithFixedSize() Option

func WithHeight

func WithHeight(height int) Option

func WithStyle

func WithStyle(style lipgloss.Style) Option

func WithWidth

func WithWidth(width int) Option

Jump to

Keyboard shortcuts

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