mirror of
https://github.com/randyjc/Rahoot.git
synced 2026-03-14 04:25:35 +01:00
19 lines
454 B
TypeScript
19 lines
454 B
TypeScript
import clsx from "clsx"
|
|
import { ButtonHTMLAttributes, PropsWithChildren } from "react"
|
|
|
|
type Props = ButtonHTMLAttributes<HTMLButtonElement> & PropsWithChildren
|
|
|
|
const Button = ({ children, className, ...otherProps }: Props) => (
|
|
<button
|
|
className={clsx(
|
|
"btn-shadow bg-primary rounded-md p-2 text-lg font-semibold text-white",
|
|
className,
|
|
)}
|
|
{...otherProps}
|
|
>
|
|
<span>{children}</span>
|
|
</button>
|
|
)
|
|
|
|
export default Button
|