goyda 0.1.3

A Rust UI toolkit that compiles the same app to Windows, Android, and web
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::components::Component;

pub struct Divider;

impl Divider {
    /// A thin line spanning the cross axis of the enclosing
    /// [`Stack`](crate::components::Stack) - style it with `.background(...)`
    /// (line color) and `.py`/`.px` (thickness is fixed at 1px by default,
    /// use padding on a wrapping stack to add breathing room around it).
    pub fn new() -> Component {
        Component::Divider(Self)
    }
}