@@ -0,0 +1,89 @@
4+ tea "github.com/charmbracelet/bubbletea/v2"
5+ "github.com/charmbracelet/crush/internal/tui/components/core/layout"
6+ "github.com/charmbracelet/crush/internal/tui/util"
28+ filterPlaceholder string
31+type listOption func(*list)
33+// WithFilterable enables filtering on the list.
34+func WithFilterable(placeholder string) listOption {
35+ return func(l *list) {
37+ l.filterPlaceholder = placeholder
41+// WithItems sets the initial items for the list.
42+func WithItems(items ...Item) listOption {
43+ return func(l *list) {
48+// WithSize sets the size of the list.
49+func WithSize(width, height int) listOption {
50+ return func(l *list) {
56+// WithGap sets the gap between items in the list.
57+func WithGap(gap int) listOption {
58+ return func(l *list) {
63+func New(opts ...listOption) List {
65+ items: make([]Item, 0),
67+ for _, opt := range opts {
73+// Init implements List.
74+func (l *list) Init() tea.Cmd {
75+ if l.height <= 0 || l.width <= 0 {
81+// Update implements List.
82+func (l *list) Update(tea.Msg) (tea.Model, tea.Cmd) {
83+ panic("unimplemented")
86+// View implements List.
87+func (l *list) View() tea.View {
88+ panic("unimplemented")