forked from pkp/ui-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkp/pkp-lib#9992 Update documentation for SideModal and Dialog, refac…
…tor Dialog to expose the props for docs
- Loading branch information
1 parent
5cdd839
commit 10ee8ec
Showing
10 changed files
with
192 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { | ||
Primary, | ||
Controls, | ||
Stories, | ||
Meta, | ||
ArgTypes, | ||
Source, | ||
} from '@storybook/blocks'; | ||
import Dialog from './Dialog.vue'; | ||
import * as DialogStories from './Dialog.stories.js'; | ||
|
||
<Meta of={DialogStories} /> | ||
|
||
# Dialog | ||
|
||
Dialog purpose is to display simple feedback like success and error messages. Or request confirmation for example before deleting content. | ||
|
||
## Usage | ||
|
||
Dialog are opened via method `openDialog` from [useModal](../?path=/docs/composables-usemodal--docs#opensidemodal) composable. Check out the props description for details. | ||
|
||
## Accessibility | ||
|
||
To correctly handle accessibility (title, description) and focus management - [headless-ui](https://headlessui.com) library is used. | ||
|
||
### Defining Modal Component | ||
|
||
<ArgTypes of={Dialog} /> | ||
|
||
<Stories /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.