Skip to main content

Crate scoria

Crate scoria 

Source
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.
ListItem
A list item.
Progress
A progress bar.
ProgressStyle
Progress bar style.
Spinner
An animated loading spinner.
Table
A data table.
TableColumn
A table column definition.
TableRow
A table row.
Tabs
A tab navigation component.
TextInput
A text input field.
TextInputStyle
Text input style.
Viewport
A scrollable viewport for long content.

Enums§

SpinnerStyle
A spinner animation style.