Skip to content

Commit

Permalink
ReturnValue explainer
Browse files Browse the repository at this point in the history
  • Loading branch information
dlnr committed Sep 16, 2024
1 parent 2723dbb commit 72508b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions storybook/src/components/Dialog/Dialog.docs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Set `method="dialog"` when using a form in Dialog.
This closes the Dialog when submitting the form.
Pass the submit Button to the `footer` prop,
and link it to the form by passing its `id` to the Buttons `form` attribute.
The Dialog returns the value of the submit Button, so you can check which Button was clicked.

<Canvas of={DialogStories.FormDialog} />

Expand Down

0 comments on commit 72508b2

Please sign in to comment.