-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from BQXBQX/dev-bqx
feat(ui): doc of dialog and sheet
- Loading branch information
Showing
8 changed files
with
343 additions
and
195 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Meta } from '@storybook/blocks'; | ||
import { useState } from 'react'; | ||
|
||
import * as DialogStories from './Dialog.stories'; | ||
import { Dialog } from './Dialog'; | ||
import { Button } from '../Button'; | ||
|
||
<Meta of={DialogStories} /> | ||
|
||
# Dialog | ||
|
||
export const ShowDialog = () => { | ||
const [visible, setVisible] = useState(false); | ||
return ( | ||
<> | ||
<Button onClick={() => setVisible(true)}>Show Dialog</Button> | ||
<Dialog | ||
visible={visible} | ||
onCancel={() => setVisible(false)} | ||
/> | ||
</> | ||
); | ||
}; | ||
|
||
<ShowDialog /> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Meta } from '@storybook/blocks'; | ||
import { useState } from 'react'; | ||
|
||
import * as SheetStories from './Sheet.stories'; | ||
import { Button } from '../Button'; | ||
import { Sheet, SheetWrapper } from '.'; | ||
|
||
<Meta of={SheetStories} /> | ||
|
||
# Sheet | ||
|
||
export const ShowSheet = () => { | ||
const [visible, setVisible] = useState(false); | ||
return ( | ||
<> | ||
<Button onClick={() => setVisible(true)}>Show Dialog</Button> | ||
<Sheet | ||
visible={visible} | ||
onCancel={() => setVisible(false)} | ||
/> | ||
</> | ||
|
||
); | ||
}; | ||
|
||
<ShowSheet /> |
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.