Skip to content

Commit

Permalink
Add Field around Input elements in JSX examples (#1519)
Browse files Browse the repository at this point in the history
  • Loading branch information
ziad-saab authored Sep 23, 2024
1 parent ee1ee08 commit 6e8daa7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions snaps/features/custom-ui/with-jsx.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,9 @@ const interfaceId = await snap.request({
params: {
ui: (
<Form name="form-to-fill">
<Input name="user-name" placeholder="Your name" />
<Field label="First Name">
<Input name="firstName" placeholder="Enter your first name" />
</Field>
<Button type="submit">Submit</Button>
</Form>
),
Expand Down Expand Up @@ -541,7 +543,9 @@ const interfaceId = await snap.request({
params: {
ui: (
<Form name="form-to-fill">
<Input name="user-name" placeholder="Your name" />
<Field label="First Name">
<Input name="firstName" placeholder="Enter your first name" />
</Field>
<Button type="submit">Submit</Button>
</Form>
),
Expand Down

0 comments on commit 6e8daa7

Please sign in to comment.