Skip to content

Commit

Permalink
Merge pull request #6 from yun-cheng/feat/ui-button
Browse files Browse the repository at this point in the history
feat(UI): add Button component
  • Loading branch information
yun-cheng authored Apr 28, 2024
2 parents 2577649 + 34b28ea commit b43439d
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 b43439d

Please sign in to comment.