feat: add storybook and new badge component with stories

This commit is contained in:
Scott Wilson
2025-10-23 09:30:30 -07:00
parent 1bf55017a1
commit 6d95985eec
19 changed files with 2437 additions and 168 deletions
@@ -0,0 +1,17 @@
import type { Decorator } from "@storybook/react-vite";
import { createRootRoute, createRouter, RouterProvider } from "@tanstack/react-router";
export const RouterDecorator: Decorator = (Story) => {
const rootRoute = createRootRoute({
component: Story
});
const routeTree = rootRoute;
const router = createRouter({
routeTree
});
// @ts-expect-error just to make Links happy :)
return <RouterProvider router={router} />;
};
+1
View File
@@ -0,0 +1 @@
export * from "./RouterDecorator";