UNPKG

@trail-ui/react

Version:
21 lines (19 loc) 538 B
// src/divider/divider.tsx import { divider } from "@trail-ui/theme"; import { useMemo } from "react"; import { Separator } from "react-aria-components"; import { jsx } from "react/jsx-runtime"; function Divider(props) { let { className, orientation, ...otherProps } = props; const styles = useMemo( () => divider({ orientation, className }), [orientation, className] ); return /* @__PURE__ */ jsx(Separator, { className: styles, "data-orientation": orientation, ...otherProps }); } export { Divider };