Skip to content

Commit 48a61b8

Browse files
committed
fix(Button): remove invalid className prop type
1 parent 9a6fcb2 commit 48a61b8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/orbit-components/src/Button/types.d.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
import type {
55
ButtonCommonProps,
6-
Size,
76
DownloadWithHrefConditionalProps,
87
FullWidthConditionalProps,
8+
Size,
99
} from "../primitives/ButtonPrimitive/types";
1010

1111
export type Type =
@@ -20,8 +20,9 @@ export type Type =
2020
| "bundleTop";
2121

2222
export type ButtonStates = "default" | "hover" | "active" | "focus";
23+
type OmittedButtonCommonProps = Omit<ButtonCommonProps, "className">;
2324

24-
interface ButtonProps extends ButtonCommonProps {
25+
interface ButtonProps extends OmittedButtonCommonProps {
2526
readonly type?: Type;
2627
readonly size?: Size;
2728
}

0 commit comments

Comments
 (0)