// Framework-only fixture: the real compound control and runtime persistence.
import * as React from "react";
import { createRoot } from "react-dom/client";
import { defineToolcraft } from "@repo/toolcraft-runtime";
import {
ControlsPanel,
ToolcraftRoot,
useToolcraft,
} from "@repo/toolcraft-runtime/react";
import "../src/styles.css";
const schema = defineToolcraft({
base: {
identity: {
id: "font-picker-browser-fixture",
title: "Font picker fixture",
},
canvas: { enabled: true },
panels: {
controls: {
title: "Typography",
sections: [
{
id: "text",
title: "Text",
controls: {
font: {
applicability: { mode: "always" },
type: "fontPicker",
label: "Font",
target: "text.font",
defaultValue: "inter",
},
},
},
],
},
},
},
modules: [],
});
function Probe() {
const { state } = useToolcraft();
return (
);
}
createRoot(document.getElementById("root")!).render(
,
);