Skip to content
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

Allow custom SVG Icon for Button #17413

Closed
1 task done
potty opened this issue Jul 2, 2019 · 2 comments
Closed
1 task done

Allow custom SVG Icon for Button #17413

potty opened this issue Jul 2, 2019 · 2 comments
Assignees

Comments

@potty
Copy link

potty commented Jul 2, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

You can use your own icons for buttons.

What does the proposed API look like?

<Button shape="circle" icon={<Icon component={CustomSvg} />} />
@afc163
Copy link
Member

afc163 commented Jul 2, 2019

<Button shape="circle">
  <Icon component={CustomSvg} />
</Button>

@afc163 afc163 closed this as completed Jul 2, 2019
@wujekpiotr
Copy link

wujekpiotr commented Oct 15, 2020

or

<Button shape="circle" className="ant-btn-icon-only">
  <Icon component={CustomSvg} />
</Button>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants