Components Library Operations InteractionLab

InteractionLab

Motion and interaction QA lab for timing, easing, risk, and reduced-motion review.

Live demo

01

Interaction QA

Interaction lab

hover

Catalogue card hover lift

Ready

Duration
180ms
Easing
ease-out
Risk
low
hover: 1press: 1drag: 1keyboard: 1

Implementation

02
InteractionLab.svelte
<script lang="ts">
  import InteractionLab from '$lib/components/InteractionLab.svelte';
</script>
​
<InteractionLab {scenarios} />

InteractionLab treats motion as a reviewable contract: mode, duration, easing, risk, and reduced-motion readiness are visible before a motion pattern gets copied into production.

Logic explainer

03

What Does It Do? (Plain English)

InteractionLab lets teams review hover, press, drag, and keyboard interaction scenarios with timing, easing, risk, and reduced-motion readiness.

How It Works (Pseudo-Code)

receive interaction scenarios
choose active scenario
toggle reduced-motion preview
derive readiness note from mode, timing, and risk
render a stage plus scenario controls

Props Reference

Prop Type Default Description
scenarios InteractionScenario[] Required Interaction scenarios with mode, duration, easing, and risk.
title string "Interaction lab" Heading above the lab.

Dependencies

No external dependencies.

API

04
PropTypeDescription
scenariosInteractionScenario[]Motion scenarios with timing and risk metadata.
titlestringLab heading.