Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Tooltip): add arrow props to hide arrow
close #207
- Loading branch information
1 parent
8c0c3e7
commit a2d62c7
Showing
5 changed files
with
650 additions
and
20 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,23 @@ | ||
import React from 'react'; | ||
|
||
import Tooltip from 'src/components/Tooltip'; | ||
import Button from 'src/components/Button'; | ||
|
||
// demo start | ||
const Demo = () => ( | ||
<div> | ||
<div className="demo-wrap"> | ||
<Tooltip popup={<p>tooltip message</p>} visible> | ||
<Button>Hover</Button> | ||
</Tooltip> | ||
</div> | ||
<div className="demo-wrap"> | ||
<Tooltip popup={<p>tooltip message</p>} arrow={false} visible> | ||
<Button>Hover</Button> | ||
</Tooltip> | ||
</div> | ||
</div> | ||
); | ||
// demo end | ||
|
||
export default Demo; |
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.