Documentation
¶
Overview ¶
Package ui provides reusable UI components for the go-mink CLI. It includes spinners, progress bars, tables, and other interactive elements.
Index ¶
- func Banner() string
- func Confirmation(confirmed bool) string
- func Divider(width int) string
- func ListItems(items []string) string
- func NumberedList(items []string) string
- func SimpleBanner() string
- func StatusBadge(status string) string
- type AnimatedBannerModel
- type AnimationTickMsg
- type ProgressModel
- type ProgressMsg
- type SpinnerDoneMsg
- type SpinnerModel
- type SpinnerType
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Confirmation ¶
Confirmation returns a yes/no prompt result display
Types ¶
type AnimatedBannerModel ¶
type AnimatedBannerModel struct {
// contains filtered or unexported fields
}
AnimatedBanner creates an animated banner effect
func NewAnimatedBanner ¶
func NewAnimatedBanner() AnimatedBannerModel
func (AnimatedBannerModel) Init ¶
func (m AnimatedBannerModel) Init() tea.Cmd
func (AnimatedBannerModel) View ¶
func (m AnimatedBannerModel) View() string
type AnimationTickMsg ¶
type AnimationTickMsg struct{}
type ProgressModel ¶
type ProgressModel struct {
// contains filtered or unexported fields
}
ProgressModel is a progress bar component
func NewProgress ¶
func NewProgress(message string) ProgressModel
NewProgress creates a new progress bar
func (ProgressModel) Init ¶
func (m ProgressModel) Init() tea.Cmd
func (ProgressModel) View ¶
func (m ProgressModel) View() string
type ProgressMsg ¶
ProgressMsg updates the progress bar
type SpinnerDoneMsg ¶
SpinnerDoneMsg signals that the spinner operation is complete
type SpinnerModel ¶
type SpinnerModel struct {
// contains filtered or unexported fields
}
SpinnerModel is a spinner component with a message
func NewSpinner ¶
func NewSpinner(message string, spinnerType SpinnerType) SpinnerModel
NewSpinner creates a new spinner with the given message
func (SpinnerModel) Init ¶
func (m SpinnerModel) Init() tea.Cmd
func (SpinnerModel) View ¶
func (m SpinnerModel) View() string
type SpinnerType ¶
type SpinnerType int
SpinnerType defines different spinner animations
const ( SpinnerDots SpinnerType = iota SpinnerLine SpinnerMinidots SpinnerJump SpinnerPulse SpinnerPoints SpinnerGlobe SpinnerMoon SpinnerMonkey SpinnerMeter SpinnerHamburger )
Click to show internal directories.
Click to hide internal directories.