mirror of
https://github.com/aljazceru/sendstr-web.git
synced 2025-12-17 06:24:24 +01:00
feat: init commit
This commit is contained in:
20
src/components/button/index.tsx
Normal file
20
src/components/button/index.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
type ButtonProps = {
|
||||
onClick: () => void
|
||||
children: React.ReactNode
|
||||
disabled?: boolean
|
||||
className?: string
|
||||
}
|
||||
|
||||
export const Button = ({ children, disabled, onClick, className }: ButtonProps) => {
|
||||
return (
|
||||
<div className={className}>
|
||||
<button
|
||||
className="bg-custom-black rounded-md px-6 py-3 w-full h-full shadow"
|
||||
onClick={onClick}
|
||||
disabled={disabled}
|
||||
>
|
||||
{children}
|
||||
</button>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user