Components
Action Icon

ActionIcon

Import

import { VKActionIcon } from "@vivakits/react-components";

Variant

The ActionIcon component comes with 3 different variants that you can change using the variant prop.

Size

The ActionIcon component comes with 7 different sizes that you can change using the size prop.

Color

The ActionIcon component comes with 5 different colors that you can change using the color prop. It has both solid and outline variants.

Rounded

The shape of the ActionIcon component can be changed using rounded prop

Gradient

The gradient color of the ActionIcon component can be changed using gradient prop

API Reference

AttributeTypeDescriptionDefault
iconReactNodeDisplays ActionIcon content -
variantsolidoutlinelightChanges ActionIcon appreancesolid
colorprimarysecondaryaccentsuccesswarningdangerChanges ActionIcon colorprimary
sizedefaultxssmmdlgxl2xlChanges ActionIcon sizemd
roundeddefaultnonexssmmdlgfullChanges border radius of the ActionIcondefault
gradientTakes an object with properties: from, to and degCreates a linear gradient background for the ActionIcon -
loadingbooleanWhether the ActionIcon is loading false