Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(Popup): add example for delay prop in Popup #3754

Merged
merged 3 commits into from
Aug 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/src/examples/modules/Popup/Usage/PopupExampleDelay.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react'
import { Button, Popup } from 'semantic-ui-react'

const PopupExampleDelay = () => (
<Popup
content='Popup will hide in 500ms after leaving mouse.'
mouseEnterDelay={500}
mouseLeaveDelay={500}
on='hover'
trigger={<Button>Open After 500ms</Button>}
/>
)

export default PopupExampleDelay
5 changes: 5 additions & 0 deletions docs/src/examples/modules/Popup/Usage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ const PopupUsageExamples = () => (
examplePath='modules/Popup/Usage/PopupExampleDefaultOpen'
renderHtml={false}
/>
<ComponentExample
title='Delay'
description='A popup can have delay in showing and hiding. This avoids accidental popup visibility.'
examplePath='modules/Popup/Usage/PopupExampleDelay'
/>
</ExampleSection>
)

Expand Down