Skip to main content

panel_block

Function panel_block 

Source
pub fn panel_block(
    title: Line<'static>,
    focused: bool,
    theme: &Theme,
) -> Block<'static>
Expand description

Creates a bordered Block for a main-content panel.

The title is any Line<'static> — use widget_title or crate::tabs::tab_line to build it, or pass Line::from("My Panel") for a plain string.

For a simple focusable widget with an optional digit shortcut, prefer focusable_block which builds both the title and the block in one call.