Skip to content

Commit 11c439a

Browse files
authored
feat: add button component
1 parent 521bc2f commit 11c439a

File tree

13 files changed

+575
-29
lines changed

13 files changed

+575
-29
lines changed

.storybook/main.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ const config: StorybookConfig = {
99
],
1010
framework: {
1111
name: "@storybook/react-vite",
12-
options: {},
12+
options: {
13+
builder: {
14+
viteConfigPath: ".storybook/vite.config.ts",
15+
},
16+
},
1317
},
1418
};
1519
export default config;

.storybook/vite.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { defineConfig } from "vite";
2+
import tsconfigPaths from "vite-tsconfig-paths";
3+
4+
const storybookViteConfig = defineConfig({
5+
plugins: [tsconfigPaths()],
6+
});
7+
8+
export default storybookViteConfig;

components.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "default",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.ts",
8+
"css": "src/global.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"lib": "@/lib"
17+
},
18+
"iconLibrary": "lucide"
19+
}

package-lock.json

Lines changed: 131 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,17 @@
5959
"typescript": "^5.7.3",
6060
"typescript-eslint": "^8.22.0",
6161
"vite": "^6.0.11",
62+
"vite-tsconfig-paths": "^5.1.4",
6263
"vitest": "^3.0.4"
6364
},
6465
"publishConfig": {
6566
"registry": "https://npm.pkg.github.com"
67+
},
68+
"dependencies": {
69+
"@radix-ui/react-slot": "^1.1.1",
70+
"class-variance-authority": "^0.7.1",
71+
"clsx": "^2.1.1",
72+
"lucide-react": "^0.474.0",
73+
"tailwind-merge": "^2.6.0"
6674
}
6775
}

0 commit comments

Comments
 (0)