Skip to main content

Module indicator

Module indicator 

Source
Expand description

Focus indicator styling for visually identifying the focused widget.

FocusIndicator describes how a focused widget should render its focus cue. Widgets query the indicator to apply a focus style overlay, border highlight, or underline to their focused state.

§Usage

use ftui_widgets::focus::FocusIndicator;
use ftui_style::Style;

// Default: reverse video on focused element
let indicator = FocusIndicator::default();

// Custom: blue underline with bold
let indicator = FocusIndicator::underline()
    .with_style(Style::new().bold());

Structs§

FocusIndicator
Configuration for how focused widgets render their focus cue.

Enums§

FocusIndicatorKind
The kind of visual cue used to indicate focus.