//! Higher-level widgets built on the core `rustik_tui_core` crate. //! //! This crate contains stateful and composite widgets that depend on the core //! rendering primitives from `rustik_tui_core`: badges, selectable lists, //! overlays, vertical scrolling, and scrollbar rendering. Keeping them //! separate leaves the core crate focused on buffers, styled text, layout, //! app/runtime traits, and small layout widgets. //! #![deny(unsafe_code)] #![warn(missing_docs)] #![warn(clippy::unwrap_used)] /// One-line action hint bar. pub mod action_bar; /// Compact text badge widget. pub mod badge; /// Centered modal dialog widget. pub mod dialog; /// Editable text input widget. pub mod input; /// Selectable list widget. pub mod list; /// Centered overlay widget. pub mod overlay; /// Shared-border multi-panel layout. pub mod panel; /// Scrollbar rendering. pub mod scrollbar; /// Scrollable line widget. pub mod scrollview; /// Generic tree widget. pub mod tree; /// Scroll viewport primitives. pub mod viewport; pub use action_bar::{ActionBar, ActionItem, ActionList}; pub use badge::Badge; pub use dialog::{DEFAULT_DIALOG_MARGIN, DEFAULT_DIALOG_MAX_SIZE, Dialog, DialogKind}; pub use input::{TextField, TextInput}; pub use list::{List, ListState, Selection}; pub use overlay::{Overlay, overlay_area}; pub use panel::Panel; pub use scrollbar::{Scrollbar, ScrollbarStyle}; pub use scrollview::{ScrollLayout, ScrollMetrics, ScrollView, VirtualScrollView, scroll_layout}; pub use tree::{ Tree, TreeHit, TreeHitZone, TreeModel, TreeNodeKind, TreeNodeState, TreeRow, TreeState, TreeStyle, TreeVisibleRow, }; pub use viewport::{Placement, Scroll, View, Viewport};