Skip to main content

labeled

Function labeled 

Source
pub fn labeled<M, P: Piece>(text: impl IntoText<M>, control: P) -> Labeled<P>
Expand description

A form row: label sits in the form-wide aligned label column (right-aligned, vertically centered), control beside it. Outside a form the label column is just this row’s own label width. A control with .grow() stretches to the row’s remaining width.

The label also names the control for assistive technology, unless the control carries an .a11y(|a| a.label(..)) of its own.

Day API ↩ Guides· daybrite.dev