Fusuma

Components / Composite

key_value

name on the left and value on the right, one line of a description list (a setting and what it is set to).

Try it

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

Live: Agent detail, where key_value is usedOpen full size

Also on this pagedividersprite

name on the left and value on the right, one line of a description list (a setting and what it is set to).

Signature

pub fn key_value<'a, M: Clone + 'a>(name: &'a str, value: &'a str) -> impl View<M> + 'a

Example

use fusuma::{column, key_value};
let view = column((key_value("Version", "2.1"), key_value("Licence", "MIT")));
let built = fusuma::doc::built::<(), _>(&view);
assert_eq!(built.texts(), ["Version", "2.1", "Licence", "MIT"]);

All components · Source