UNPKG

@gravity-ui/uikit

Version:

Gravity UI base styling and components

12 lines (11 loc) 739 B
import { jsx as _jsx } from "react/jsx-runtime"; import * as React from 'react'; import { block } from "../utils/cn.js"; import { filterDOMProps } from "../utils/filterDOMProps.js"; import "./Divider.css"; const b = block('divider'); export const Divider = React.forwardRef(function Divider(props, ref) { const { orientation = 'horizontal', className, style, qa, children, align = 'start', ...restProps } = props; return (_jsx("div", { ...filterDOMProps(restProps, { labelable: true }), className: b({ orientation, align }, className), ref: ref, style: style, "data-qa": qa, role: "separator", "aria-orientation": orientation === 'vertical' ? 'vertical' : undefined, children: children })); }); //# sourceMappingURL=Divider.js.map