Expand description
§Sparks
Beautiful TUI components for building terminal interfaces.
Sparks is the Rust equivalent of bubbles from Charmbracelet. It provides ready-to-use components that work with Cauldron or can be used standalone.
§Components
- Spinner - Animated loading indicators
- Progress - Progress bars
- TextInput - Text input fields
- List - Scrollable lists with selection
- Viewport - Scrollable content areas
- Table - Data tables
- Tabs - Tab navigation
§Quick Start
use sparks::{Spinner, SpinnerStyle};
let spinner = Spinner::new(SpinnerStyle::Dots);
println!("{}", spinner.view());Modules§
- prelude
- Prelude for convenient imports.
Structs§
- List
- A scrollable list with selection.
- List
Item - A list item.
- Progress
- A progress bar.
- Progress
Style - Progress bar style.
- Spinner
- An animated loading spinner.
- Table
- A data table.
- Table
Column - A table column definition.
- Table
Row - A table row.
- Tabs
- A tab navigation component.
- Text
Input - A text input field.
- Text
Input Style - Text input style.
- Viewport
- A scrollable viewport for long content.
Enums§
- Spinner
Style - A spinner animation style.