Skip to content

Commit

Permalink
Update storybook/src/components/Dialog/Dialog.docs.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: Aram <[email protected]>
  • Loading branch information
dlnr and alimpens authored Sep 17, 2024
1 parent 72508b2 commit ea560ce
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 @@ -21,6 +21,7 @@ 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.
For more information, see [Handling the return value from the dialog (MDN)](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog#handling_the_return_value_from_the_dialog).

<Canvas of={DialogStories.FormDialog} />

Expand Down

0 comments on commit ea560ce

Please sign in to comment.