import { NAME, pattern, UI } from "commonfabric"; import Demo from "./ui-variants-demo.tsx"; import Counter from "../counter/counter.tsx"; /** * CT-1321 browser verification host. Renders one piece that exports all three * variants (Demo) and one that exports only [UI] (Counter) through * ``, so we can eyeball the exported variants AND the * platform-default failover (chip → cf-cell-link, tile → full [UI] scaled). */ const box = { border: "1px dashed #c7d2fe", borderRadius: "8px", padding: "8px", }; export default pattern(() => { const demo = Demo({ title: "Demo Piece" }); const plain = Counter({}); return { [NAME]: "UI Variants Host", [UI]: (

Piece exports all three variants

chip:
tile:
full:

Piece exports only [UI] → platform defaults

chip default (cf-cell-link):{" "}
tile default (full [UI] scaled):
), }; });