Skip to content

Commit a85d5b6

Browse files
committed
feat: sub-title component 구현
1 parent 1b35b37 commit a85d5b6

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

components/sub-title/index.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import React from "react";
2+
3+
type Props = {
4+
children: string;
5+
};
6+
7+
const classes = {
8+
subTitle: "text-2xl font-bold text-gray-900",
9+
};
10+
11+
const SubTitle = (props: Props) => {
12+
const { children } = props;
13+
14+
return <p className={classes.subTitle}>{children}</p>;
15+
};
16+
17+
export default SubTitle;

0 commit comments

Comments
 (0)