Files
yaak/src-web/components/ButtonLink.tsx
Gregory Schier 90c873e37e Back to React
2023-03-13 09:50:49 -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} />
);
}