Documentation
¶
Overview ¶
Package timer provides countdown and elapsed time components with GCP styling.
Index ¶
- type Mode
- type Model
- func (m Model) Cmd() tea.Cmd
- func (m Model) Elapsed() time.Duration
- func (m Model) Init() tea.Cmd
- func (m Model) Remaining() time.Duration
- func (m *Model) Reset()
- func (m Model) Running() bool
- func (m *Model) Start() tea.Cmd
- func (m *Model) Stop()
- func (m Model) TimedOut() bool
- func (m *Model) Toggle() tea.Cmd
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
- func (m Model) WithLabel(label string) Model
- type TimerResetMsg
- type TimerStartMsg
- type TimerStopMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model wraps bubbles/timer with GCP styling and additional features
func NewCountdown ¶
NewCountdown creates a countdown timer
Click to show internal directories.
Click to hide internal directories.