UNPKG

@brizy/ui

Version:
9 lines (8 loc) 459 B
import React from "react"; import { classNames } from "../classNamesFn"; import AntDivider from "antd/lib/divider"; export const Divider = props => { const { type = "horizontal", orientation = "center", dashed = false, color, children } = props; const className = classNames()({ [`divider--${color}`]: color }); return (React.createElement(AntDivider, { className: className, type: type, orientation: orientation, dashed: dashed }, children)); };