Fusuma

Components / Small parts

section

A small heading.

Try it

This is the Foundations page of the gallery, running in your browser: section is on it, and it is the real widget. Press Run, then use it.

Live: Foundations, where section is usedOpen full size

Also on this pagewrapgridcardradioparagraph

A small heading.

A group of rows under it belongs to it: use it as the heading of a list or a form.

Signature

pub const fn section(title: &str) -> Section<'_>

Example

use fusuma::{column, item, section};
let view = column((section("Folders"), item("Inbox", true).on_select(0)));
let built = fusuma::doc::built::<i32, _>(&view);
assert_eq!(built.texts(), ["Folders", "Inbox"]);

All components · Source