Reference
MOVEMENT_DIRECTIVES
All directives the library ships (every MOVEMENT_STABLE_DIRECTIVES plus every MOVEMENT_EXPERIMENTAL_DIRECTIVES member), ready to spread into a standalone compo…
Overview
All directives the library ships (every MOVEMENT_STABLE_DIRECTIVES plus every
MOVEMENT_EXPERIMENTAL_DIRECTIVES member), ready to spread into a standalone component's
imports.
Most components use one to three directives — import those instead; it is just as short and keeps the component's dependencies explicit:
imports: [MoveHoverDirective, MoveTapDirective]
This aggregate itself is stable — spreading it will always compile and its own shape follows
SemVer — but its contents are not stability-pure: it includes experimental directives, whose
individual behavior may change in a 1.x minor. Prefer importing only the directives a
component actually uses (best for tree-shaking), or MOVEMENT_STABLE_DIRECTIVES if you
want a spread that can never pull in an experimental directive.
- Kind: Constant
- Stability:
stable
Type
const MOVEMENT_DIRECTIVES: readonly [typeof MoveEnterDirective, typeof MoveLeaveDirective, typeof MoveAnimateDirective, typeof MoveHoverDirective, typeof MoveTapDirective, typeof MoveVariantsDirective, typeof MoveStaggerDirective, typeof MoveScrollDirective, typeof MovePresenceDirective, typeof MovePresenceForDirective …