Files
flxn-app/src/components/button.tsx
2025-08-30 01:42:23 -05:00

15 lines
431 B
TypeScript

import {
Button as MantineButton,
ButtonProps as MantineButtonProps,
} from "@mantine/core";
import { forwardRef, ComponentPropsWithoutRef } from "react";
type ButtonProps = MantineButtonProps & ComponentPropsWithoutRef<"button">;
const Button = forwardRef<HTMLButtonElement, ButtonProps>((props, ref) => {
return <MantineButton fullWidth ref={ref} {...props} />;
});
Button.displayName = "Button";
export default Button;