import { NAME, pattern, UI, type VNode, Writable } from "commonfabric"; import { Controls, TextControl } from "../ui/controls/index.ts"; // deno-lint-ignore no-empty-interface interface SvgStoryInput {} export interface SvgStoryOutput { [NAME]: string; [UI]: VNode; controls: VNode; } export default pattern(() => { const defaultSvg = ''; const customSvg = new Writable(defaultSvg); const shapesSvg = ''; const gradientSvg = ''; const starSvg = ''; const labelStyle = { fontSize: "11px", color: "#9ca3af", textAlign: "center" as const, marginTop: "6px", }; const svgWrapperStyle = { display: "flex", flexDirection: "column" as const, alignItems: "center", width: "120px", }; return { [NAME]: "cf-svg Story", [UI]: (
Sample SVGs
Simple shapes
Gradient
Path icon
Custom SVG
), controls: ( ), }; });