UNPKG

choerodon-ui

Version:

An enterprise-class UI design language and React-based implementation

25 lines (20 loc) 886 B
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; import React, { useContext } from 'react'; import classNames from 'classnames'; import ConfigContext from '../config-provider/ConfigContext'; var Grid = function Grid(props) { var customizePrefixCls = props.prefixCls, className = props.className, others = _objectWithoutProperties(props, ["prefixCls", "className"]); var _useContext = useContext(ConfigContext), getPrefixCls = _useContext.getPrefixCls; var prefixCls = getPrefixCls('card', customizePrefixCls); var classString = classNames("".concat(prefixCls, "-grid"), className); return React.createElement("div", _extends({}, others, { className: classString })); }; Grid.displayName = 'CardGrid'; export default Grid; //# sourceMappingURL=Grid.js.map