Skip to content

Heading

Section headings from h2 to h6.

Example

Section

Subsection

Group

Show code
use zeyn::prelude::*;

pub fn overview(_ctx: &Ctx) -> Node {
    Stack::new()
        .gap(1)
        .add(Heading::h2("Section"))
        .add(Heading::h3("Subsection"))
        .add(Heading::h4("Group"))
        .into()
}