Skip to content

Tabs

Panels behind a tab list, loaded the first time they open.

Example

A sturdy notebook with 120 pages.

Show code
use zeyn::prelude::*;

pub fn overview(_ctx: &Ctx) -> Node {
    Tabs::new("Product")
        .tab("Description", Paragraph::new("A sturdy notebook with 120 pages."))
        .tab("Shipping", Paragraph::new("Ships in two days."))
        .tab("Reviews", Paragraph::new("No reviews yet."))
        .into()
}