Skip to content

Commit c82c16d

Browse files
committed
feat: divider 컴포넌트 구현
1 parent 58c08e5 commit c82c16d

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { cn } from "@/lib/utils";
2+
3+
interface HorizontalDividerProps {
4+
className?: string;
5+
}
6+
7+
export default function HorizontalDivider({
8+
className,
9+
}: HorizontalDividerProps) {
10+
return <div className={cn("bg-divider h-0.5 rounded-sm", className)}></div>;
11+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { cn } from "@/lib/utils";
2+
3+
interface VerticalDividerProps {
4+
className?: string;
5+
}
6+
7+
export default function VerticalDivider({ className }: VerticalDividerProps) {
8+
return <div className={cn("bg-divider w-0.5 rounded-sm", className)}></div>;
9+
}

frontend/tailwind.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
/** @type {import('tailwindcss').Config} */
2+
3+
import colors from "tailwindcss/colors";
4+
25
export default {
36
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
47
theme: {
58
fontFamily: {
69
pretendard: ["Pretendard"],
710
},
11+
colors: {
12+
divider: colors.neutral["200"],
13+
},
814
extend: {},
915
},
1016
};

0 commit comments

Comments
 (0)