Skip to content

Commit

Permalink
feat(UI): add Button component
Browse files Browse the repository at this point in the history
  • Loading branch information
yun-cheng committed Apr 28, 2024
1 parent 2577649 commit 34b28ea
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/components/ui/Button.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React from 'react'
import cn from 'utils/cn'

const Button = React.forwardRef<
HTMLButtonElement,
React.HTMLAttributes<HTMLButtonElement>
>(({ className, children, ...props }, ref) => (
<button
ref={ref}
className={cn(
'h-[41px] w-[170px] rounded-full bg-dark-desaturated-blue',
'font-extrabold text-pale-blue hover:text-white',
className
)}
type='button'
{...props}
>
{children}
</button>
))

export default Button

0 comments on commit 34b28ea

Please sign in to comment.