You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
617 B
TypeScript
23 lines
617 B
TypeScript
1 year ago
|
import cn from 'clsx'
|
||
|
import type { ComponentProps, ReactElement } from 'react'
|
||
|
|
||
|
export const Button = ({
|
||
|
children,
|
||
|
className,
|
||
|
...props
|
||
|
}: ComponentProps<'button'>): ReactElement => {
|
||
|
return (
|
||
|
<button
|
||
|
className={cn(
|
||
|
'nextra-button nx-transition-all active:nx-opacity-50',
|
||
|
'nx-bg-primary-700/5 nx-border nx-border-black/5 nx-text-gray-600 hover:nx-text-gray-900 nx-rounded-md nx-p-1.5',
|
||
|
'dark:nx-bg-primary-300/10 dark:nx-border-white/10 dark:nx-text-gray-400 dark:hover:nx-text-gray-50',
|
||
|
className
|
||
|
)}
|
||
|
{...props}
|
||
|
>
|
||
|
{children}
|
||
|
</button>
|
||
|
)
|
||
|
}
|