How do we use custom icons, especially for form errors

5 Answers 40 Views
Styling / Themes
julian
Top achievements
Rank 1
Iron
julian asked on 01 Jul 2024, 02:26 PM

How do we use our custom icons in Kendo?

How to set an icon to the form error message?

5 Answers, 1 is accepted

Sort by
0
Yanko
Telerik team
answered on 02 Jul 2024, 01:27 PM

Hello Julian,

I'm providing you with an example on how you can use our SvgIcon component inside an Error message. You can use any custom icon you want with our components:

https://stackblitz.com/edit/react-tonnwv?file=app%2Fapp.jsx  

Please check the above example and let me know if you have any further questions.    

Regards,
Yanko
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

0
julian
Top achievements
Rank 1
Iron
answered on 02 Jul 2024, 02:39 PM
How do I publish this as part of a theme?
0
Yanko
Telerik team
answered on 03 Jul 2024, 08:24 AM

Hello, Julian,

I will be glad to assist you, but I am not entirely sure about your inquiring. Therefore, could you please provide me with more context about what you are trying to achieve?

Regards,
Yanko
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

0
julian
Top achievements
Rank 1
Iron
answered on 03 Jul 2024, 01:23 PM
We have a number of custom icons that we would need to publish within a custom Kendo theme for projects using React, Jquery, and .net
0
Yanko
Telerik team
answered on 03 Jul 2024, 03:00 PM

Hi, Julian,

Before, I answer the question, I would like to explain something:

The KendoReact Components, the Kendo SVG icons and the Kendo Themes are 3 different packages which complement each other. This means that there is no way to customize the icons through the Kendo Themes. However, in this context you can export your own package for your own custom icons. 

This being said, the KendoReact Suite has introduced a way to customize all SVG icons which are given from the Kendo SVG package through the IconsContext.Provider.

For more information, see this article in our documentation website, which displays how to switch our SVG icons with custom ones:

 https://www.telerik.com/kendo-react-ui/components/common/svgicon/customization/#toc-built-in-svg-icons-customization

I hope this information helps, but please let me know if you have any other questions regarding the matter.

Regards,
Yanko
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

Tags
Styling / Themes
Asked by
julian
Top achievements
Rank 1
Iron
Answers by
Yanko
Telerik team
julian
Top achievements
Rank 1
Iron
Share this question
or