1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use dioxus::prelude::*;

/// Docs [here](https://github.com/material-components/material-web/tree/mwc/packages/list#dividers).
#[derive(Props, PartialEq)]
pub struct ListSeparatorProps {
    #[props(default)]
    pub padded: bool,
    #[props(default)]
    pub inset: bool,
}

#[allow(non_snake_case)]
pub fn MatListSeparator(cx: Scope<ListSeparatorProps>) -> Element {
    render! {
        li {
            "divider": true,
            role: "separator",
            "padded": bool_attr!(cx.props.padded),
            "inset": bool_attr!(cx.props.inset),
        }
    }
}