-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(Modal): Add closeIcon * Default closeIcon to `close` if closeIcon=true
- Loading branch information
1 parent
bd2e1da
commit c222ba7
Showing
7 changed files
with
86 additions
and
8 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
21 changes: 21 additions & 0 deletions
21
docs/app/Examples/modules/Modal/Variations/ModalExampleCloseIcon.js
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,21 @@ | ||
import React from 'react' | ||
import { Button, Header, Icon, Modal } from 'semantic-ui-react' | ||
|
||
const ModalExampleCloseIcon = () => ( | ||
<Modal trigger={<Button>Show Modal</Button>} closeIcon='close'> | ||
<Header icon='archive' content='Archive Old Messages' /> | ||
<Modal.Content> | ||
<p>Your inbox is getting full, would you like us to enable automatic archiving of old messages?</p> | ||
</Modal.Content> | ||
<Modal.Actions> | ||
<Button color='red'> | ||
<Icon name='remove' /> No | ||
</Button> | ||
<Button color='green'> | ||
<Icon name='checkmark' /> Yes | ||
</Button> | ||
</Modal.Actions> | ||
</Modal> | ||
) | ||
|
||
export default ModalExampleCloseIcon |
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