Files
yaak/src-web/components/core/ButtonLink.tsx
Gregory Schier f81a3ae8e7 Move stuff around
2023-03-13 23:30:14 -07:00

14 lines
352 B
TypeScript

import classnames from 'classnames';
import type { ButtonProps } from './Button';
import { Button } from './Button';
type Props = ButtonProps & {
to: string;
};
export function ButtonLink({ to, className, ...buttonProps }: Props) {
return (
<Button to={to} className={classnames(className, 'w-full')} tabIndex={-1} {...buttonProps} />
);
}