material_dioxus/list/separator.rs
1use dioxus::prelude::*;
2
3/// Docs [here](https://github.com/material-components/material-web/tree/mwc/packages/list#dividers).
4#[derive(Props, PartialEq)]
5pub struct ListSeparatorProps {
6 #[props(default)]
7 pub padded: bool,
8 #[props(default)]
9 pub inset: bool,
10}
11
12#[allow(non_snake_case)]
13pub fn MatListSeparator(cx: Scope<ListSeparatorProps>) -> Element {
14 render! {
15 li {
16 "divider": true,
17 role: "separator",
18 "padded": bool_attr!(cx.props.padded),
19 "inset": bool_attr!(cx.props.inset),
20 }
21 }
22}