import { NAME, pattern, UI, type VNode, Writable } from "commonfabric"; import { Controls, SwitchControl } from "../ui/controls/index.ts"; // deno-lint-ignore no-empty-interface interface HoverRevealStoryInput {} interface HoverRevealStoryOutput { [NAME]: string; [UI]: VNode; controls: VNode; } const rowStyle = { padding: "0.5rem 0.75rem", borderRadius: "6px", border: "1px solid #e5e7eb", }; export default pattern(() => { const revealed = new Writable(false); return { [NAME]: "cf-hover-reveal Story", [UI]: (
Point at this row, or tab into it, to see its actions. React Reply Each row reveals only its own actions. React
), controls: ( <> ), }; });