chore: storybook (#15285)

Co-authored-by: David Hill <iamdavidhill@gmail.com>
This commit is contained in:
Adam
2026-02-26 16:05:04 -06:00
committed by GitHub
parent 8c484a05b8
commit 05d77b7d47
85 changed files with 5407 additions and 9 deletions

View File

@@ -0,0 +1,11 @@
import { addons, types } from "storybook/manager-api"
import { ThemeTool } from "./theme-tool"
addons.register("opencode/theme-toggle", () => {
addons.add("opencode/theme-toggle/tool", {
type: types.TOOL,
title: "Theme",
match: ({ viewMode }) => viewMode === "story" || viewMode === "docs",
render: ThemeTool,
})
})