Files
playX/src/components/button/index.tsx
2026-03-18 11:42:00 +08:00

24 lines
474 B
TypeScript

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;