import { NAME, pattern, UI, type VNode, Writable } from "commonfabric"; import { Controls, SelectControl, SwitchControl, } from "../ui/controls/index.ts"; // deno-lint-ignore no-empty-interface interface CopyButtonStoryInput {} export interface CopyButtonStoryOutput { [NAME]: string; [UI]: VNode; controls: VNode; } export default pattern(() => { const variant = new Writable<"secondary" | "ghost" | "outline">("secondary"); const iconOnly = new Writable(false); return { [NAME]: "cf-copy-button Story", [UI]: (
Copy Button
Copy text
Icon Only
With Code Block
npm install @commonfabric/ui
), controls: ( <> ), }; });