import { NAME, pattern, UI, type VNode, Writable } from "commonfabric"; import { Controls, SelectControl, SwitchControl, TextControl, } from "../ui/controls/index.ts"; // deno-lint-ignore no-empty-interface interface BadgeStoryInput {} export interface BadgeStoryOutput { [NAME]: string; [UI]: VNode; controls: VNode; } export default pattern(() => { const variant = new Writable<"solid" | "outline">("solid"); const color = new Writable<"neutral" | "primary" | "accent" | "danger">( "primary", ); const removable = new Writable(false); const label = new Writable("Badge"); return { [NAME]: "cf-badge Story", [UI]: (
{label} Click the close button when removable is enabled.
), controls: ( <> ), }; });