Skip to main content

section

Function section 

Source
pub fn section<'a, Message: 'a>(
    title: impl AsRef<str>,
    scale: FontScale,
    content: impl Into<Element<'a, Message>>,
) -> Element<'a, Message>
Expand description

A titled group of content — the standard way every Hyprforge settings screen breaks itself into blocks (vision pillar #2). Sized to its content; callers that need scrolling should cap a max_height on the content they pass in rather than have the card stretch to fill whatever space happens to be available.