A paragraph.
It wraps at the width its parent gives it, breaks a word that is too long, and follows the text direction. The text is 'static: for text that changes use text_fmt or a field.
Signature
pub const fn paragraph(text: &'static str) -> ParagraphMethods
.caption() -> Self— In the small, quiet type of a caption or a hint, which wraps wheretext(..).caption()is cut off.
Example
use fusuma::{column, paragraph};
let view = column((paragraph("A paragraph wraps at the width it is given, and grows as tall as it needs.").caption(),));
let built = fusuma::doc::built::<(), _>(&view);
assert_eq!(built.nodes(), 2);