Files
opencode/packages/storybook/.storybook/manager.ts
Adam 05d77b7d47 chore: storybook (#15285)
Co-authored-by: David Hill <iamdavidhill@gmail.com>
2026-02-26 16:05:04 -06:00

12 lines
337 B
TypeScript

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,
})
})