Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file removed src/components/common/.gitkeep
Empty file.
23 changes: 23 additions & 0 deletions src/components/common/Button.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import type { ButtonHTMLAttributes } from 'react';

interface Props extends ButtonHTMLAttributes<HTMLButtonElement> {
solid?: boolean;
size?: 'large' | 'medium' | 'small';
}

export default function Button({
solid = true,
size = 'large',
className = '',
children,
...props
}: Props) {
return (
<button
className={`rounded-md disabled:border-none disabled:bg-gray-40 disabled:text-white ${solid ? 'bg-primary text-white' : 'border border-primary bg-white text-primary'} ${size === 'large' ? 'h-48 text-body1 font-bold' : size === 'medium' ? 'h-37 text-body2 font-bold' : 'h-32 text-caption font-regular'} ${className}`}
{...props}
>
{children}
</button>
);
}
1 change: 1 addition & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
--color-blue-20: #0080ff;
--color-green-10: #d4f7d4;
--color-green-20: #20a81e;
--color-primary: #ea3c12;
--color-kakao: #fee500;
--font-weight-regular: 400;
--text-h1: 28px;
Expand Down