-
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(Popup): Multiple event triggering a Popup (#1977)
* fix(Popup): change position(right/left) for small width components The position of the Popup on elements with smaller width(<25px) not aligned. * Review changes updated * feat(Popup): Multiple event triggering a Popup Popup triggering by multiple events(hover, focus or click) * test case for proptypes * Requested changes updated * Proptypes validation for Popup * Review changes updated * Test case for multiple event trigger Popup * Rectifying indentation
- Loading branch information
1 parent
af1f05d
commit 87bae70
Showing
5 changed files
with
48 additions
and
8 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
docs/app/Examples/modules/Popup/Usage/PopupExampleMultiple.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,13 @@ | ||
import React from 'react' | ||
import { Button, Popup } from 'semantic-ui-react' | ||
|
||
const PopupExampleMultiple = () => ( | ||
<Popup | ||
trigger={<Button icon>Click me or Hover me</Button>} | ||
header='Movie Search' | ||
content='Multiple events can trigger a popup' | ||
on={['hover', 'click']} | ||
/> | ||
) | ||
|
||
export default PopupExampleMultiple |
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