-
-
Notifications
You must be signed in to change notification settings - Fork 46.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Button icon prop #1199
Comments
I would like to have same for TabPane. |
I think <Button>
<Icon type="star" /> Star
</Button>
<Button>
Next <Icon type="right" />
</Button> |
if you are going to add 'icon' prop to Button, then probably it will be also a good idea to add it to other components - e.g. tabs. But i'm fine with current way - less to learn, lower learning curve => more users. |
Just for |
You guys can still use nested Icon. |
please add to Tabs, because right now i have to use callback to render titles with icons. |
<TabPane tab=<span><Icon type="xx" />tab 2</span> key="2">
second
</TabPane> Why callback? |
because it's ugly and much more worse than was with Button.
Button now:
Tab now:
Tab can be:
As i said - your addition about icon would be better for tabs, than for buttons. |
Ok, I consider it. Maybe you can give me a PR~ |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
The text was updated successfully, but these errors were encountered: