ratatui_toolkit/widgets/markdown_widget/extensions/toc/constructors/hovered.rs
1//! Hovered entry configuration for Toc widget.
2
3use crate::widgets::markdown_widget::extensions::toc::Toc;
4
5impl<'a> Toc<'a> {
6 /// Set the hovered item index.
7 ///
8 /// # Arguments
9 ///
10 /// * `index` - The index of the hovered heading, or None.
11 ///
12 /// # Returns
13 ///
14 /// Self for method chaining.
15 pub fn hovered(self, _index: Option<usize>) -> Self {
16 // Now managed by TocState, this is a no-op for compatibility
17 self
18 }
19}