Skip to main content

Icon

Icon is a graphic element that displays SVG icons, such as a search glyph in a button or a status symbol beside text.

Import

import { Icon } from '@vortexlabs/vortex-native';
import type { IconProps } from '@vortexlabs/vortex-native';

Other links

Icon

Icon props
PropTypeDefaultAttributes
src
union
No default value
size
number
4
color
union
default
autoWidth
boolean
false
allowFontScaling
boolean
true
flipRTL
boolean
No default value
ariaLabel
string
No default value
style
object
No default value
attributes
object
No default value

IconSourceProps

IconSourceProps props
PropTypeDefaultAttributes
width
union
No default value
height
number
No default value
color
string
No default value