+ {code}
+
+ )}
+ {children}
+ ); +} diff --git a/components/app/playground/core.ts b/components/app/playground/core.ts new file mode 100644 index 0000000..1b7e61c --- /dev/null +++ b/components/app/playground/core.ts @@ -0,0 +1,104 @@ +import type { FC } from "react"; + +/** A single control's current value. */ +export type ControlValue = number | string | number[]; + +/** All control values for one playground type, keyed by control `key`. */ +export type Values = Recordclick a tab
+scroll down ↓
++ {caption.title} +
++ {caption.text} +
+
+ {p.code}
+
+ + {p.text} +
++ Learn motion by playing. Tweak a property, watch it run, read what the + code is doing line by line, then copy it. +
++ {active.blurb} +
+