ratatui-toolkit 0.2.6

DEPRECATED: this crate was renamed to `ratkit`. Please migrate to `ratkit`.
Documentation
//! Constructor for pane configuration.

use crate::primitives::pane::Pane;
use crate::widgets::markdown_widget::widget::MarkdownWidget;

impl<'a> MarkdownWidget<'a> {
    /// Configure the Pane that wraps the widget.
    ///
    /// When `has_pane` is true (default), the widget is wrapped in this Pane.
    /// Use this to customize the pane's title, icon, padding, border style, etc.
    ///
    /// # Arguments
    ///
    /// * `pane` - The Pane configuration to use
    ///
    /// # Returns
    ///
    /// The modified `MarkdownWidget` instance.
    pub fn with_pane(mut self, pane: Pane<'a>) -> Self {
        self.pane = Some(pane);
        self
    }
}