Skip to content

Commit cdb63b7

Browse files
committed
fix: react examples
1 parent 748e1ec commit cdb63b7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/next-ts/pages/color-picker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function Page() {
3131
id: useId(),
3232
name: "color",
3333
format: "hsla",
34-
value: colorPicker.parse("hsl(0, 100%, 50%)"),
34+
defaultValue: colorPicker.parse("hsl(0, 100%, 50%)"),
3535
})
3636

3737
const api = colorPicker.connect(service, normalizeProps)

examples/next-ts/pages/menu-options.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default function Page() {
6969
</main>
7070

7171
<Toolbar controls={controls.ui}>
72-
<StateVisualizer state={state} />
72+
<StateVisualizer state={service} />
7373
</Toolbar>
7474
</>
7575
)

examples/next-ts/pages/splitter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function Page() {
1111

1212
const service = useMachine(splitter.machine, {
1313
id: useId(),
14-
size: [
14+
defaultSize: [
1515
{ id: "a", size: 50 },
1616
{ id: "b", size: 50 },
1717
],

examples/next-ts/pages/tabs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function Page() {
1111

1212
const service = useMachine(tabs.machine, {
1313
id: useId(),
14-
value: "nils",
14+
defaultValue: "nils",
1515
})
1616

1717
const api = tabs.connect(service, normalizeProps)

0 commit comments

Comments
 (0)