Fusuma

Components / Components

skeleton

A grey bar where something will load (a line of text is about height 12).

How it looks

Drawn by the toolkit from the example below. No page of the gallery uses skeleton yet, so there is nothing to run.

skeleton drawn by Fusuma

A grey bar where something will load (a line of text is about height 12). Still, so it costs an e-paper panel nothing.

Signature

pub fn skeleton<'a, M: Clone + 'a>(width: Length, height: u32) -> impl View<M> + 'a

Example

use fusuma::{Length, column, skeleton};
let view = column((skeleton(Length::Fixed(240), 14), skeleton(Length::Fixed(160), 14)));
let built = fusuma::doc::built::<(), _>(&view);
assert_eq!(built.nodes(), 3);

All components · Source