KendoReact SvgIcon Overview
The SvgIcon component is used to display svg icons. The KendoReact delivers more than 500 SVG icons.
The following example demonstrates the SvgIcon component in action.
The SvgIcon is part of the KendoReact Common Utilities component library. The procedures for installing, importing, and using the Common Utilities are identical for all components in the package. To learn how to use the SvgIcon and the rest of the Common Utilities, see the
Getting Started with the KendoReact Common Utilities
guide.
Key Features
- Appearance—You can quickly style the SvgIcon by choosing from the predefined styling options.
- Custom SVG Icons—You can render custom SVG icons inside the KendoReact SvgIcon component.
SVG Icons List
Switch to SVG or Font Icons
You can use the KendoReact IconsContext to switch the type of the icons in your app.
The following code snippet shows how to change the icons type to SVG.
import { IconsContext } from '@progress/kendo-react-common';
const App = () => {
return (
<IconsContext.Provider value={{ type: 'svg' }}>
{/* Your app code goes here */}
</IconsContext.Provider>
);
};
ReactDOM.render(<App />, document.querySelector('my-app'));