ratatui_toolkit/primitives/button/traits/mod.rs
1//! Trait implementations for the Button widget.
2//!
3//! This module contains standard library trait implementations for the `Button` type.
4
5use crate::primitives::button::Button;
6
7impl Default for Button {
8 /// Returns a default button with text "Button".
9 ///
10 /// # Returns
11 ///
12 /// A new `Button` instance with default styling and text "Button"
13 fn default() -> Self {
14 Self::new("Button")
15 }
16}