Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/charmbracelet/bubbles
/ types & classes
Types & classes
115 in github.com/charmbracelet/bubbles
⨍
Functions
843
◇
Types & classes
115
↓ 5 callers
TypeAlias
item
list/list_test.go:15
↓ 2 callers
TypeAlias
filteredItems
list/list.go:69
↓ 2 callers
TypeAlias
pasteMsg
Internal messages for clipboard operations.
textarea/textarea.go:41
↓ 1 callers
TypeAlias
FilterMatchesMsg
FilterMatchesMsg contains data about items matched during filtering. The message should be routed to Update for processing.
list/list.go:81
↓ 1 callers
TypeAlias
HInt
HInt is a type that implements the Hasher interface for integers.
internal/memoization/memoization.go:120
↓ 1 callers
TypeAlias
HString
HString is a type that implements the Hasher interface for strings.
internal/memoization/memoization.go:112
↓ 1 callers
TypeAlias
copyMsg
Internal messages for clipboard operations.
textarea/textarea.go:43
↓ 1 callers
TypeAlias
nodeValueStringer
tree/node_value_test.go:10
↓ 1 callers
TypeAlias
pasteMsg
Internal messages for clipboard operations.
textinput/textinput.go:24
Struct
Binding
Binding describes a set of keybindings and, optionally, their associated help text.
key/key.go:43
FuncType
BindingOpt
BindingOpt is an initialization option for a keybinding. It's used as an argument to NewBinding.
key/key.go:51
Struct
BlinkMsg
BlinkMsg signals that the cursor should blink. It contains metadata that allows us to tell if the blink message is the one we're expecting.
cursor/cursor.go:29
FuncType
ColorFunc
ColorFunc is a function that can be used to dynamically fill the progress bar based on the current percentage. total is the total filled percentage, a
progress/progress.go:22
Struct
Column
Column defines the table structure.
table/table.go:35
Struct
CursorStyle
CursorStyle is the style for real and virtual cursors.
textarea/textarea.go:170
Struct
CursorStyle
CursorStyle is the style for real and virtual cursors.
textinput/styles.go:71
Struct
DefaultDelegate
DefaultDelegate is a standard delegate designed to work in lists. It's styled by DefaultItemStyles, which can be customized as you like. The descript
list/defaultitem.go:86
Interface
DefaultItem
DefaultItem describes an item designed to work with DefaultDelegate.
list/defaultitem.go:67
Struct
DefaultItemStyles
DefaultItemStyles defines styling for a default list item. See DefaultItemView for when these come into play.
list/defaultitem.go:16
TypeAlias
EchoMode
EchoMode sets the input behavior of the text input field.
textinput/textinput.go:31
FuncType
FilterFunc
FilterFunc takes a term and a list of strings to search through (defined by Item#FilterValue). It should return a sorted list of ranks.
list/list.go:86
TypeAlias
FilterState
FilterState describes the current filtering state on the model.
list/list.go:155
Struct
FrameMsg
FrameMsg indicates that an animation step should occur.
progress/progress.go:181
Struct
GutterContext
GutterContext provides context to a [GutterFunc].
viewport/viewport.go:137
FuncType
GutterFunc
GutterFunc can be implemented and set into [Model.LeftGutterFunc]. Example implementation showing line numbers: func(info GutterContext) string {
viewport/viewport.go:131
Interface
Hasher
Hasher is an interface that requires a Hash method. The Hash method is expected to return a string representation of the hash of the object.
internal/memoization/memoization.go:14
Struct
Help
Help is help information for a given keybinding.
key/key.go:124
Interface
Item
Item is an item that appears in the list.
list/list.go:34
Interface
ItemDelegate
ItemDelegate encapsulates the general functionality for all list items. The benefit to separating this logic from the item itself is that you can chan
list/list.go:46
Interface
KeyMap
KeyMap is a map of keybindings used to generate help. Since it's an interface it can be any type, though struct or a map[string][]key.Binding are like
help/help.go:18
Struct
KeyMap
KeyMap is the key bindings for different actions within the paginator.
paginator/paginator.go:24
Struct
KeyMap
KeyMap defines keybindings. It satisfies to the help.KeyMap interface, which is used to render the help menu.
table/table.go:42
Struct
KeyMap
KeyMap defines keybindings. It satisfies to the help.KeyMap interface, which is used to render the menu.
list/keys.go:7
Struct
KeyMap
KeyMap is the key bindings for different actions within the textarea.
textarea/textarea.go:51
Struct
KeyMap
KeyMap defines key bindings for each user action.
filepicker/filepicker.go:67
Struct
KeyMap
KeyMap is the key bindings for different actions within the textinput.
textinput/textinput.go:50
Struct
KeyMap
KeyMap defines the keybindings for the viewport. Note that you don't necessary need to use keybindings at all; the viewport can be controlled programm
viewport/keymap.go:11
Struct
KeyMap
KeyMap is the key bindings for different actions within the tree.
tree/tree.go:22
Struct
LineInfo
LineInfo is a helper for keeping track of line information regarding soft-wrapped lines.
textarea/textarea.go:133
Struct
MemoCache
MemoCache is a struct that represents a cache with a set capacity. It uses an LRU (Least Recently Used) eviction policy. It is safe for concurrent use
internal/memoization/memoization.go:28
TypeAlias
Mode
Mode describes the behavior of the cursor.
cursor/cursor.go:44
Struct
Model
Model stores values we'll use when rendering the progress bar.
progress/progress.go:187
Struct
Model
Model is the Bubble Tea model for this user interface.
paginator/paginator.go:39
Struct
Model
Model for the stopwatch component.
stopwatch/stopwatch.go:55
Struct
Model
Model is the Bubble Tea model for this cursor element.
cursor/cursor.go:64
Struct
Model
Model defines a state for the table widget.
table/table.go:16
Struct
Model
Model contains the state of this component.
list/list.go:174
Struct
Model
Model is the Bubble Tea model for this text area element.
textarea/textarea.go:277
Struct
Model
Model represents a file picker.
filepicker/filepicker.go:127
Struct
Model
Model of the timer component.
timer/timer.go:90
Struct
Model
Model is the Bubble Tea model for this text input element.
textinput/textinput.go:93
Struct
Model
Model contains the state for the spinner. Use New to create new models rather than using Model as a struct literal.
spinner/spinner.go:88
Struct
Model
Model is the Bubble Tea model for this viewport element.
viewport/viewport.go:52
Struct
Model
Model contains the state of the help view.
help/help.go:77
Struct
Model
Model is the Bubble Tea model for this tree element.
tree/tree.go:104
Struct
Node
Node is a a node in the tree. Node implements lipgloss's tree.Node.
tree/node.go:10
TypeAlias
Nodes
Nodes are a list of tree nodes.
tree/node.go:206
FuncType
Option
Option is used to set options in [New]. For example: progress := New( WithColors( lipgloss.Color("#5A56E0"), lipgloss.Color("#EE6FF8"), ),
progress/progress.go:70
FuncType
Option
Option is used to set options in New.
paginator/paginator.go:126
FuncType
Option
Option is a configuration option in [New]. For example: timer := New(time.Second*10, WithInterval(5*time.Second))
stopwatch/stopwatch.go:20
FuncType
Option
Option is used to set options in New. For example: table := New(WithColumns([]Column{{Title: "ID", Width: 10}}))
table/table.go:130
FuncType
Option
Option is the type of option that can be passed to Sanitize().
internal/runeutil/runeutil.go:36
FuncType
Option
Option is a configuration option in [New]. For example: timer := New(time.Second*10, WithInterval(5*time.Second))
timer/timer.go:20
FuncType
Option
Option is used to set options in New. For example: spinner := New(WithSpinner(Dot))
spinner/spinner.go:197
FuncType
Option
Option is a configuration option that works in conjunction with [New]. For example: timer := New(WithWidth(10, WithHeight(5)))
viewport/viewport.go:23
Struct
Position
Position is a location in the textarea's logical buffer: Row indexes a logical (unwrapped) line, Col indexes a rune within that line. Col may equal th
textarea/selection.go:13
Struct
PromptInfo
PromptInfo is a struct that can be used to store information about the prompt.
textarea/textarea.go:164
Struct
Rank
Rank defines a rank for a given item.
list/list.go:89
Struct
ResetMsg
ResetMsg is sent when the stopwatch should reset.
stopwatch/stopwatch.go:50
TypeAlias
Row
Row represents one line in the table.
table/table.go:32
Interface
Sanitizer
Sanitizer is a helper for bubble widgets that want to process Runes from input key messages.
internal/runeutil/runeutil.go:12
Struct
Spinner
Spinner is a set of frames used in animating the spinner.
spinner/spinner.go:21
Struct
StartStopMsg
StartStopMsg is sent when the stopwatch should start or stop.
stopwatch/stopwatch.go:44
Struct
StartStopMsg
Authors note with regard to start and stop commands: Technically speaking, sending commands to start and stop the timer in this case is extraneous. T
timer/timer.go:58
FuncType
StyleFunc
StyleFunc allows the tree to be styled per item.
tree/styles.go:6
Struct
StyleState
StyleState that will be applied to the text area. StyleState can be applied to focused and unfocused states to change the styles depending on the foc
textarea/textarea.go:213
Struct
StyleState
StyleState that will be applied to the text area. StyleState can be applied to focused and unfocused states to change the styles depending on the foc
textinput/styles.go:63
Struct
Styles
Styles contains style definitions for this list component. By default, these values are generated by DefaultStyles.
table/table.go:106
Struct
Styles
Styles contains style definitions for this list component. By default, these values are generated by DefaultStyles.
list/style.go:15
Struct
Styles
Styles are the styles for the textarea, separated into focused and blurred states. The appropriate styles will be chosen based on the focus state of t
textarea/textarea.go:200
Struct
Styles
Styles defines the possible customizations for styles in the file picker.
filepicker/filepicker.go:95
Struct
Styles
Styles are the styles for the textarea, separated into focused and blurred states. The appropriate styles will be chosen based on the focus state of t
textinput/styles.go:50
Struct
Styles
Styles is a set of available style definitions for the Help bubble.
help/help.go:31
Struct
Styles
Styles contains style definitions for this tree component. By default, these values are generated by DefaultStyles.
tree/styles.go:10
Struct
TickMsg
TickMsg is a message that is sent on every timer tick.
stopwatch/stopwatch.go:31
Struct
TickMsg
TickMsg is a message that is sent on every timer tick.
timer/timer.go:64
Struct
TickMsg
TickMsg indicates that the timer has ticked and we should render a frame.
spinner/spinner.go:124
Struct
TimeoutMsg
TimeoutMsg is a message that is sent once when the timer times out. It's a convenience message sent alongside a TickMsg with the Timeout value set to
timer/timer.go:85
TypeAlias
Type
Type specifies the way we render pagination.
paginator/paginator.go:15
FuncType
ValidateFunc
ValidateFunc is a function that returns an error if the input is invalid.
textinput/textinput.go:47
TypeAlias
actionType
internal/memoization/memoization_test.go:11
Struct
blinkCanceled
blinkCanceled is sent when a blink operation is canceled.
cursor/cursor.go:35
Struct
blinkCtx
blinkCtx manages cursor blinking.
cursor/cursor.go:38
Struct
cacheAction
internal/memoization/memoization_test.go:18
Struct
copyErrMsg
Internal messages for clipboard operations.
textarea/textarea.go:44
Struct
customClipboardErr
textarea/textarea_test.go:3227
Struct
customClipboardErr
textinput/textinput_test.go:226
Struct
entry
entry is a struct that holds a key-value pair. It is used as an element in the evictionList of the MemoCache.
internal/memoization/memoization.go:20
Struct
errorMsg
filepicker/filepicker.go:51
Struct
filteredItem
list/list.go:63
next →
1–100 of 115, ranked by callers