From 11852b815a6f09128540be5c1dc2b110e5d73635 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 6 Apr 2017 20:52:32 +0800 Subject: [PATCH] Add instruction for setting iconfont size and color, ref #2125 --- components/icon/index.en-US.md | 6 ++++++ components/icon/index.zh-CN.md | 6 ++++++ 2 files changed, 12 insertions(+) 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 | - |