Components / PropertyRow
PropertyRow
A label on the left and its value on the right.
Example
The component itself, running in WebAssembly, beside its code in a playground. Try it.
Code
use ravenrs::prelude::*;
fn property_row() -> impl View {
VStack::new((
PropertyRow::new("Camera", "NIKON D3100"),
PropertyRow::new("Lens", ""),
PropertyRow::with("Status", Badge::new("Edited").tone(Tone::Success)),
))
.spacing(8.0)
.align(Align::Stretch)
}