Files
yaak/src-web/components/ButtonLink.tsx
2023-03-13 00:11:23 -07:00

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}
/>
);
}