Skip to main content

labeled_check

Function labeled_check 

pub fn labeled_check<C>(label: impl Into<String>, control: C) -> Row
where C: CheckControl + 'static,
Expand description

Compose a checkbox or toggle with one inline visible and accessible label.

The control comes first, matching platform form conventions. label is a Fluent message key resolved live by both the semantic Text and the control’s accessibility node.

use tilo_ui::widget::{Checkbox, labeled_check};

let remember = labeled_check(
    "account-remember-label",
    Checkbox::new("remember", "remember-value"),
);