mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-24 07:28:28 +08:00
a4648fd67f
* Add noHovering prop for Card * Add Card.Grid * fix snapshot * change default card grid percent
15 lines
408 B
TypeScript
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} />;
|
|
};
|