Components
    • Animation
    • Buttons
    • Charts
    • Common Utilities
    • Conversational UI
    • Data Query
    • Data Tools
    • Date Inputs
    • Date Math
    • Dialogs
    • Drawing
    • Dropdowns
    • Editor
    • Excel Export
    • File Saver
    • Form
    • Gantt
    • Gauges
    • Grid
    • Indicators
    • Inputs
    • Labels
    • Layout
    • ListBox
    • ListView
    • Notification
    • PDF Processing
    • PivotGrid
    • Popup
    • Progress Bars
    • Ripple
    • Scheduler
    • Sortable
    • Tooltip
    • TreeList
    • TreeView
    • Upload
    Sample Applications
    Styling & Themes
    Common Features
    Project Setup
    Changelog
New to KendoReact? Start a free 30-day trial

Appearance

The Icon component provides many predefined appearance options such as different sizes, theme colors and flipping.

Theme Color

Icons can be colored in terms of the current theme using the themeColor property. The available values are:

  • inherit (Default)Applies coloring based on the current color.
  • primaryApplies coloring based on primary theme color.
  • secondaryApplies coloring based on secondary theme color.
  • tertiary Applies coloring based on tertiary theme color.
  • infoApplies coloring based on info theme color.
  • success Applies coloring based on success theme color.
  • warning Applies coloring based on warning theme color.
  • error Applies coloring based on error theme color.
  • dark Applies coloring based on dark theme color.
  • light Applies coloring based on light theme color.
  • inverse Applies coloring based on inverse theme color.

The Icon allows you to use predefined theme colors through the themeColor property. Any custom color could by applied via style property.

Example
View Source
Edit In Stackblitz  
Change Theme:

Size

The Icon allows you to specify its size. The available values are:

  • default (Default)Font-size: 16px; Width: 16px; Height: 16px.
  • xsmallFont-size: 8px; Width: 8px; Height: 8px.
  • smallFont-size: 12px; Width: 12px; Height: 12px.
  • mediumFont-size: 32px; Width: 32px; Height: 32px.
  • largeFont-size: 48px; Width: 48px; Height: 48px.
  • xlargeFont-size: 64px; Width: 64px; Height: 64px.

The Icon allows you to use predefined sizes through the size property. Any custom size could by applied via style property.

Example
View Source
Edit In Stackblitz  
Change Theme:

Flip

The Icon allows you to invert it through an axis in different directions by using the flip property. The available values are:

  • default (Default)No flipping applied.
  • horizontalFlips the icon in horizontal direction.
  • verticalFlips the icon in vertical direction.
  • bothFlips the icon in both horizontal and vertical directions.
Example
View Source
Edit In Stackblitz  
Change Theme:

In this article

Not finding the help you need?