question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Button support custom icon

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

What problem does this feature solve?

Button can set custom icon

What does the proposed API look like?

<Button type="primary" icon={<MyIcon type="game" />} />

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
afc163commented, Sep 4, 2018
0reactions
nuintuncommented, Sep 5, 2018

@zombieJ @afc163 其实是想要实现自定义 Icon 所以 @zombieJ 的更符合,但是还是抖动~

https://codesandbox.io/s/v0jq048yol

自己覆盖 loading 又会丢了 loading{ delay: 150 } 用法!

迷之抖动~

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use CUSTOM ICONS in BUTTON - GeneratePress
I want to use shopping icon like this: https://www.w3schools.com/icons/tryit.asp?icon=fas_fa-shopping-cart&unicon=f07a
Read more >
Custom Image Buttons - AddToAny
Custom Image Buttons. Use the following code as a template for using custom icons. Custom icons. <div class ...
Read more >
How to add custom icons to a button? - Support - Kriesi.at
Is there any way to add a custom icon to a button, instead of using one already in the icon options? January 12,...
Read more >
Button support custom icon #4588 - primefaces/primeng
I want to use my own svg icon instead of font-awesome icon. suggest to provide a new attribute to button component for developer...
Read more >
How to add custom icons in buttons and well control - Support
HI All,. I would like to show my own icon to controls like button and well. As of now it allows me to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found