๐ŸงจPre-releaseYou shouldn't use this library-1 min read

AnimatedShapeProps API Reference

Prop reference

TitleTypeDefaultDescription
width*number
โ€“

Width of the bounding box

height*number
โ€“

Height of the bounding box

rotationPivotShapePosition
โ€“

Rotation pivot (defaults to shape center incl. position offset)

scalePivotShapePosition
โ€“

Scale pivot (defaults to shape center incl. position offset)

positionShapePosition
โ€“

Position offset (number, "10%", "10% 20%", [10,20], x:10,y:20, etc)

classNamestring
โ€“

Additional CSS classes for the root element

styleCSSProperties
โ€“

Additional inline styles for the root element

from*ShapeAnimatableProps
โ€“

Starting values for animatable props

to*ShapeAnimatableProps
โ€“-
configSpringAnimationConfig
โ€“

Animation config or preset name

* Props marked with an asterisk are required.

CSS target reference

ExportCSS Class TargetDescription
AnimatedShapeTargetClassRoot.NPUI-AnimatedShape-root

Root of an animated shape component

Exports are available from /src/components/shapes/euclidean/animated-shape.tsx or from
Made by .