Versions in this module Expand all Collapse all v0 v0.20.0 Feb 14, 2025 Changes in this version + var NewModel = New + type FrameMsg struct + type Model struct + Empty rune + EmptyColor string + Full rune + FullColor string + PercentFormat string + PercentageStyle lipgloss.Style + ShowPercentage bool + Width int + func New(opts ...Option) Model + func (m *Model) DecrPercent(v float64) tea.Cmd + func (m *Model) IncrPercent(v float64) tea.Cmd + func (m *Model) IsAnimating() bool + func (m *Model) SetPercent(p float64) tea.Cmd + func (m *Model) SetSpringOptions(frequency, damping float64) + func (m Model) Init() tea.Cmd + func (m Model) Percent() float64 + func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (m Model) View() string + func (m Model) ViewAs(percent float64) string + type Option func(*Model) + func WithColorProfile(p termenv.Profile) Option + func WithDefaultGradient() Option + func WithDefaultScaledGradient() Option + func WithFillCharacters(full rune, empty rune) Option + func WithGradient(colorA, colorB string) Option + func WithScaledGradient(colorA, colorB string) Option + func WithSolidFill(color string) Option + func WithSpringOptions(frequency, damping float64) Option + func WithWidth(w int) Option + func WithoutPercentage() Option