Skip to main content
K
Last modified: 24/Jun/2024

Icons

Icons are schematized visual representations of an action or enhances recognition of a UI element.

#Usage

import { Icon } from '@kinsta/stratus' const MyComponent = () => ( <Icon type="ArrowLeft" /> )

#Props

#type
Required
"AnalyticsAlt" | "AnalyticsCircleAlt" | "AnalyticsCircleSolidAlt" | "AnalyticsCircleSolid" | "AnalyticsCircle" | "AnalyticsSmall" | "AnalyticsSquareAlt" | "AnalyticsSquareSolidAlt" | ... 525 more ... | "Wrench"
Type of the icon
#size
IconSize
The size of the icon
#isSpinning
boolean
Whether the icon should be spinning

#Types

  • IconProps: props of the Icon component processed by stratus
  • IconInterface: IconProps extended by HTMLAttributes<SVGElement>
  • IconName: strings that identify the type of icon

Read more about types here


#See also