init project
This commit is contained in:
23
src/components/button/index.tsx
Normal file
23
src/components/button/index.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import type { ButtonHTMLAttributes, PropsWithChildren } from "react";
|
||||
import { twMerge } from "tailwind-merge";
|
||||
|
||||
type ButtonProps = PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>>;
|
||||
|
||||
export function Button({
|
||||
children,
|
||||
className = "",
|
||||
type = "button",
|
||||
...props
|
||||
}: ButtonProps) {
|
||||
return (
|
||||
<button
|
||||
type={type}
|
||||
className={twMerge("button-play", className)}
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
|
||||
export default Button;
|
||||
Reference in New Issue
Block a user