ant-design/components/card/Grid.tsx

15 lines
408 B
TypeScript
Raw Normal View History

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} />;
};