import { NAME, pattern, UI, type VNode, Writable } from "commonfabric"; import { Controls, TextControl } from "../ui/controls/index.ts"; // deno-lint-ignore no-empty-interface interface EmptyStateStoryInput {} interface EmptyStateStoryOutput { [NAME]: string; [UI]: VNode; controls: VNode; } const sectionLabelStyle = { fontSize: "12px", fontWeight: "600", color: "#6b7280", textTransform: "uppercase", letterSpacing: "0.05em", }; export default pattern(() => { const message = new Writable("No items yet. Add one below!"); return { [NAME]: "cf-empty-state Story", [UI]: (
Message only
With icon
📋 Your shopping list is empty. Type above to add items!
With action
📚 No items yet. Add something to read! Add first item
), controls: ( <> ), }; });