ant-design-vue/components/icon/index.en-US.md

14 lines
457 B
Markdown
Raw Normal View History

2018-01-25 08:29:23 +00:00
## API
You can set `style` and `className` for size and color of icons because they are still fonts in essence.
```jsx
<a-icon type="question" style="font-size: 16px, color: #08c" />
```
| Property | Description | Type | Default |
| -------- | ----------- | ---- | ------- |
| spin | Rotate icon with animation | boolean | false |
| style | style properties of icon, like fontSize and color | object | - |
| type | Type of ant design icon | string | - |