Components Library Operations InteractionLab
InteractionLab
Motion and interaction QA lab for timing, easing, risk, and reduced-motion review.
Live demo
01Interaction QA
Interaction lab
hover
Catalogue card hover lift
Ready
- Duration
- 180ms
- Easing
- ease-out
- Risk
- low
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
03What 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 controlsProps 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| Prop | Type | Description |
|---|---|---|
scenarios | InteractionScenario[] | Motion scenarios with timing and risk metadata. |
title | string | Lab heading. |