ant-design/components/icon/index.jsx
2015-12-06 16:22:34 +08:00

8 lines
199 B
JavaScript

import React from 'react';
export default props => {
let { type, className = '', ...other } = props;
className += ` anticon anticon-${type}`;
return <i className={className} {...other} />;
};