mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-17 09:06:38 +01:00
19 lines
388 B
TypeScript
19 lines
388 B
TypeScript
import classnames from 'classnames';
|
|
import type { ButtonProps } from './Button';
|
|
import { Button } from './Button';
|
|
|
|
type Props = ButtonProps & {
|
|
href: string;
|
|
};
|
|
|
|
export function ButtonLink({ href, className, ...buttonProps }: Props) {
|
|
return (
|
|
<Button
|
|
href={href}
|
|
className={classnames(className, 'w-full')}
|
|
tabIndex={-1}
|
|
{...buttonProps}
|
|
/>
|
|
);
|
|
}
|