Skip to content

Commit d31fbdf

Browse files
committed
feat(ui/experimental/Button): allow name and value props for Buttons
1 parent 505c961 commit d31fbdf

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/long-parts-float.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@badrap/libapp": patch
3+
---
4+
5+
feat(ui/experimental/Button): allow name and value props for Buttons

src/ui/experimental/Button.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ import {
66
} from "../internal.ts";
77

88
type ButtonProps = {
9+
name?: string;
10+
value?: Json;
11+
action?: Json;
912
variant?: "default" | "primary" | "danger";
1013
size?: Responsive<"sm" | "md">;
1114
iconSide?: "start" | "end";
1215
disabled?: boolean;
13-
action?: Json;
1416
submit?: boolean;
1517
children?: UiNode;
1618
} & (

0 commit comments

Comments
 (0)