mirror of
https://github.com/danbulant/cushy
synced 2026-06-17 13:31:07 +00:00
14 lines
365 B
Rust
14 lines
365 B
Rust
use cushy::widget::MakeWidget;
|
|
use cushy::widgets::Disclose;
|
|
use cushy::Run;
|
|
|
|
fn main() -> cushy::Result {
|
|
Disclose::new(
|
|
"This is some inner content"
|
|
.align_left()
|
|
.and(Disclose::new("This is even further inside".contain()))
|
|
.into_rows(),
|
|
)
|
|
.labelled_by("This demonstrates the Disclose widget")
|
|
.run()
|
|
}
|