30 lines
612 B
JavaScript
30 lines
612 B
JavaScript
import { jsx as s } from "react/jsx-runtime";
|
|
const d = ({ orientation: r = "horizontal", className: i = "", style: o, color: t = "var(--md-sys-color-outline-variant)", ...a }) => {
|
|
const e = {
|
|
backgroundColor: t,
|
|
...r === "horizontal" ? {
|
|
width: "100%",
|
|
height: "1px",
|
|
margin: "8px 0"
|
|
} : {
|
|
width: "1px",
|
|
height: "100%",
|
|
margin: "0 8px"
|
|
},
|
|
...o
|
|
};
|
|
return /* @__PURE__ */ s(
|
|
"div",
|
|
{
|
|
role: "separator",
|
|
"aria-orientation": r,
|
|
className: `md-divider ${i}`,
|
|
style: e,
|
|
...a
|
|
}
|
|
);
|
|
};
|
|
export {
|
|
d as Divider
|
|
};
|