ant-design/components/card/Grid.tsx
偏右 a4648fd67f Add noHovering and Card.Grid (#6748)
* Add noHovering prop for Card

* Add Card.Grid

* fix snapshot

* change default card grid percent
2017-07-07 13:36:54 +08:00

15 lines
408 B
TypeScript

import React from 'react';
import classNames from 'classnames';
export interface CardGridProps {
prefixCls?: string;
style?: React.CSSProperties;
className?: string;
}
export default (props: CardGridProps) => {
const { prefixCls = 'ant-card', className, ...others } = props;
const classString = classNames(`${prefixCls}-grid`, className);
return <div {...others} className={classString} />;
};