Skip to content

Commit

Permalink
Improve Button prop type
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcur committed Jul 20, 2023
1 parent f5d4437 commit 542e3f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astroplant-frontend/src/Components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import clsx from "clsx";
import commonStyles from "~/Common.module.css";
import styles from "./Button.module.css";

export type ButtonProps = React.HTMLProps<HTMLButtonElement> & {
export type ButtonProps = Omit<React.HTMLProps<HTMLButtonElement>, "size"> & {
variant?: "regular" | "primary" | "muted" | "positive" | "negative";
size?: "regular" | "small";
loading?: boolean;
Expand Down

0 comments on commit 542e3f6

Please sign in to comment.