Skip to content

Commit 4f83b4a

Browse files
committed
1 parent 73217f8 commit 4f83b4a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Button.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export namespace ButtonProps {
6363
nativeButtonProps?: never;
6464
disabled?: never;
6565
type?: never;
66+
value?: never;
6667
};
6768
export type AsButton = {
6869
linkProps?: never;
@@ -72,7 +73,7 @@ export namespace ButtonProps {
7273
disabled?: boolean;
7374
/** Default "button" */
7475
type?: "button" | "submit" | "reset";
75-
value?: string
76+
value?: string;
7677
};
7778
}
7879

@@ -94,6 +95,7 @@ export const Button = memo(
9495
disabled,
9596
type,
9697
style,
98+
value,
9799
...rest
98100
} = props;
99101

@@ -159,6 +161,7 @@ export const Button = memo(
159161
onClick={onClick ?? nativeButtonProps?.onClick}
160162
disabled={disabled ?? nativeButtonProps?.disabled}
161163
ref={ref as React.ForwardedRef<HTMLButtonElement>}
164+
value={value}
162165
{...rest}
163166
>
164167
{children}

0 commit comments

Comments
 (0)