generated from 2nthony/ts-lib-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: tooltip, assert
children
is valid element (#96)
- Loading branch information
Showing
2 changed files
with
28 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from "react"; | ||
|
||
import Tooltip from "../../lib/Tooltip"; | ||
|
||
export default { | ||
title: "Tooltip", | ||
component: Tooltip, | ||
}; | ||
export const Primary = () => ( | ||
<div> | ||
<Tooltip content={"tooltip content"}>{"hover me"}</Tooltip> | ||
</div> | ||
); | ||
|
||
export const elementOrComponent = () => { | ||
return ( | ||
<div> | ||
<Tooltip content={"element/component"}> | ||
<span>hover span</span> | ||
</Tooltip> | ||
</div> | ||
); | ||
}; |