Skip to content

Commit

Permalink
Flip around HiddenInput's 'valid' prop into 'invalid' and make it opt…
Browse files Browse the repository at this point in the history
…ional
  • Loading branch information
jviide committed Aug 8, 2024
1 parent 001068d commit 086e08c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/weak-walls-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@badrap/libapp": patch
---

Flip around HiddenInput's 'valid' prop into 'invalid' and make it optional
2 changes: 1 addition & 1 deletion src/ui/experimental/HiddenInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Json, UiNode, element } from "../internal.js";
type HiddenInputProps = {
name: string;
value?: Json;
valid: boolean;
invalid?: boolean;
};

export function HiddenInput(props: HiddenInputProps): UiNode {
Expand Down

0 comments on commit 086e08c

Please sign in to comment.