menu
0.11.5
Icon
Component that displays an icon.
Module
import '@capitec/omni-components/icon';
content_copy
import { OmniIcon } from "@capitec/omni-components-react/icon";
content_copy
Interactive
SVG
Local Source
Remote Source
Material
Asymmetrical
Symmetrical

Properties

Name Attribute Type Description
size size 
'default' | 'extra-small' | 'small' | 'medium' | 'large'
Size to display the icon at
icon icon 
string | undefined
Name of the icon to display. Takes preference over the slotted icon.
symmetrical symmetrical 
boolean | undefined
When true, enforces 1:1 width and height of the icon.
dir dir 
string
Used to set the base direction of text for display
lang lang 
string
Used to identify the language of text content on the web

Slots

Name Description
loading_indicator
Used to define content that is displayed while async rendering is awaiting, or when renderLoading() is implicitly called
[Default Slot]
The icon to be displayed

Theme Variables

Name Description
--omni-theme-primary-color
Theme primary color.
--omni-theme-primary-hover-color
Theme primary hover color.
--omni-theme-primary-active-color
Theme primary active color.
--omni-theme-accent-color
Theme accent color.
--omni-theme-accent-hover-color
Theme accent hover color.
--omni-theme-accent-active-color
Theme accent active color.
--omni-theme-background-color
Theme background color.
--omni-theme-background-hover-color
Theme background hover color.
--omni-theme-background-active-color
Theme background active color.
--omni-theme-font-color
Theme font color.
--omni-theme-disabled-border-color
Theme disabled border color.
--omni-theme-disabled-background-color
Theme disabled background color.
--omni-theme-error-font-color
Theme disabled background color.
--omni-theme-error-border-color
Theme error border color.
--omni-theme-hint-font-color
Theme hint font color.
--omni-theme-inactive-color
Theme inactive color.
--omni-theme-box-shadow-color
Theme inactive color.
--omni-theme-font-family
Theme font family.
--omni-theme-font-size
Theme font size.
--omni-theme-font-weight
Theme font weight.
--omni-theme-border-radius
Theme border radius.
--omni-theme-border-width
Theme border width.
--omni-theme-box-shadow
Theme box shadow.

Component Variables

Name Description
--omni-icon-fill
Icon fill color.
--omni-icon-background-color
Icon background color.
--omni-icon-size-large
Icon large size.
--omni-icon-size-medium
Icon medium size.
--omni-icon-size-small
Icon small size.
--omni-icon-size-extra-small
Icon extra small size.
--omni-icon-size-default
Icon default size.