diff --git a/components/icon/index.en-US.md b/components/icon/index.en-US.md index ed4aebdaef..b0ad549c7b 100644 --- a/components/icon/index.en-US.md +++ b/components/icon/index.en-US.md @@ -64,6 +64,12 @@ ReactDOM.render(, mountNode); ## API +You can set `style` and `className` for size and color of icons because they are still words in essence. + +```jsx + +``` + | Property | Description | Type | Default | |----------|------------------|------- |---------| | type | Type of ant design icons | string | - | diff --git a/components/icon/index.zh-CN.md b/components/icon/index.zh-CN.md index 3a606f828b..8871afbc20 100644 --- a/components/icon/index.zh-CN.md +++ b/components/icon/index.zh-CN.md @@ -65,6 +65,12 @@ ReactDOM.render(, mountNode); ## API +由于图标字体本质上还是文字,可以使用 `style` 和 `className` 设置图标的大小和颜色。 + +```jsx + +``` + | 参数 | 说明 | 类型 | 默认值 | |----------|------------------|----------|--------| | type | 图标类型 | string | - |