list_separator.rs

 1#![allow(missing_docs)]
 2
 3use crate::prelude::*;
 4
 5#[derive(IntoElement)]
 6pub struct ListSeparator;
 7
 8impl RenderOnce for ListSeparator {
 9    fn render(self, cx: &mut WindowContext) -> impl IntoElement {
10        div()
11            .h_px()
12            .w_full()
13            .my(Spacing::Medium.rems(cx))
14            .bg(cx.theme().colors().border_variant)
15    }
16}