ant-design/components/icon/index.jsx
jiang d5d7aa48b3 Alert tag animate (#2209)
* fix alert animation

* improve code
2016-06-28 22:13:11 +08:00

8 lines
206 B
JavaScript

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