File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import React from 'react'
2+ import { Button , Popup } from 'semantic-ui-react'
3+
4+ const PopupExampleDelay = ( ) => (
5+ < Popup
6+ content = 'Popup will hide in 500ms after leaving mouse.'
7+ mouseEnterDelay = { 500 }
8+ mouseLeaveDelay = { 500 }
9+ on = 'hover'
10+ trigger = { < Button > Open After 500ms</ Button > }
11+ />
12+ )
13+
14+ export default PopupExampleDelay
Original file line number Diff line number Diff line change @@ -107,6 +107,11 @@ const PopupUsageExamples = () => (
107107 examplePath = 'modules/Popup/Usage/PopupExampleDefaultOpen'
108108 renderHtml = { false }
109109 />
110+ < ComponentExample
111+ title = 'Delay'
112+ description = 'A popup can have delay in showing and hiding. This avoids accidental popup visibility.'
113+ examplePath = 'modules/Popup/Usage/PopupExampleDelay'
114+ />
110115 </ ExampleSection >
111116)
112117
You can’t perform that action at this time.
0 commit comments