• What is KendoReact
  • Getting Started
  • Unstyled Mode
  • Server Components
  • Components
    • Animation
    • Barcodes
    • Buttons
    • Chart Wizardnew
    • Chartsupdated
    • Common Utilities
    • Conversational UIupdated
    • Data Gridupdated
    • Data Query
    • Data Toolsupdated
    • Date Inputs
    • Date Math
    • Dialogsupdated
    • Drawing
    • Dropdowns
    • Editor
    • Excel Export
    • File Saver
    • Form
    • Gantt
    • Gauges
    • Indicators
    • Inputsupdated
    • Labels
    • Layoutupdated
    • ListBoxupdated
    • ListView
    • Map
    • Notification
    • OrgChart
    • PDF Processing
    • PDF Viewer
    • PivotGrid
    • Popup
    • Progress Bars
    • Ripple
    • Schedulerupdated
    • ScrollView
    • Sortable
    • Spreadsheet
    • TaskBoard
    • Tooltips
    • TreeList
    • TreeViewupdated
    • Upload
  • Sample Applications
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Changelog
  • Updates
  • Troubleshooting

Custom SVG Icons

The SvgIcon component allows you to display custom SVG icons (not available in the KendoReact default icons set). You could provide the inner SVG elements as children to the SvgIcon. SVG element has default viewBox set to 0 0 24 24. This can be customized with the viewBox property.

Custom SVG icons also allow setting all predefined appearance options such as different sizes, theme colors and flipping.

Example
View Source
Change Theme:

Built-in SVG Icons customization

Using the IconsContext.Provider you can also customize the SVG icons which are already embedded into the components. In the example below you can see how to replace the arrow icon of the SplitButton component with:

  • an icon from the @progress/kendo-svg-icons package
  • a custom SVG object
  • a FontAwesome icon
Example
View Source
Change Theme:

In this article

Not finding the help you need?