You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design/components/icon/index.tsx

11 lines
312 B
TypeScript

import React from 'react';
import splitObject from '../_util/splitObject';
export default props => {
const [{type, className = ''}, others] = splitObject(props,
['type','className']);
9 years ago
let className2 = `${className} anticon anticon-${type}`.trim();
return <i className={className2} {...others} />;
};