-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
92 changed files
with
775 additions
and
186 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ node_modules | |
/packages/*/lib | ||
/packages/*/coverage | ||
*.tsbuildinfo | ||
.npmrc | ||
.npmrc | ||
.DS_Store |
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
Binary file modified
BIN
+14 Bytes
(100%)
packages/ui/.loki/reference/chrome_fullHD_Components_Button_Primary_Disabled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+5 Bytes
(100%)
packages/ui/.loki/reference/chrome_fullHD_Components_Button_Secondary_Disabled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3 Bytes
(100%)
...ges/ui/.loki/reference/chrome_fullHD_Components_Button_Transparent_Disabled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+25 Bytes
(100%)
packages/ui/.loki/reference/chrome_fullHD_Components_Checkbox_With_Description.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+37 Bytes
(100%)
packages/ui/.loki/reference/chrome_fullHD_Components_Checkbox_With_Error.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+16 Bytes
(100%)
packages/ui/.loki/reference/chrome_fullHD_Components_Help_Text_With_Help.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+17 Bytes
(100%)
.../ui/.loki/reference/chrome_fullHD_Components_Help_Text_With_Help_No_Padding.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.87 KB
...ages/ui/.loki/reference/chrome_fullHD_Components_Tooltip_Auto_End_Placement.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.88 KB
packages/ui/.loki/reference/chrome_fullHD_Components_Tooltip_Auto_Placement.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.87 KB
...es/ui/.loki/reference/chrome_fullHD_Components_Tooltip_Auto_Start_Placement.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.88 KB
...es/ui/.loki/reference/chrome_fullHD_Components_Tooltip_Bottom_End_Placement.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.88 KB
packages/ui/.loki/reference/chrome_fullHD_Components_Tooltip_Bottom_Placement.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.87 KB
.../ui/.loki/reference/chrome_fullHD_Components_Tooltip_Bottom_Start_Placement.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.24 KB
packages/ui/.loki/reference/chrome_fullHD_Components_Tooltip_Default.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.8 KB
...ges/ui/.loki/reference/chrome_fullHD_Components_Tooltip_Interactive_Content.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.99 KB
...ages/ui/.loki/reference/chrome_fullHD_Components_Tooltip_Left_End_Placement.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.9 KB
packages/ui/.loki/reference/chrome_fullHD_Components_Tooltip_Left_Placement.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.92 KB
...es/ui/.loki/reference/chrome_fullHD_Components_Tooltip_Left_Start_Placement.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.01 KB
...ges/ui/.loki/reference/chrome_fullHD_Components_Tooltip_Right_End_Placement.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.91 KB
packages/ui/.loki/reference/chrome_fullHD_Components_Tooltip_Right_Placement.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.93 KB
...s/ui/.loki/reference/chrome_fullHD_Components_Tooltip_Right_Start_Placement.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.89 KB
packages/ui/.loki/reference/chrome_fullHD_Components_Tooltip_Top_End_Placement.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.89 KB
packages/ui/.loki/reference/chrome_fullHD_Components_Tooltip_Top_Placement.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.88 KB
...ges/ui/.loki/reference/chrome_fullHD_Components_Tooltip_Top_Start_Placement.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.24 KB
packages/ui/.loki/reference/chrome_fullHD_Components_Tooltip_Visible_False.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+15 Bytes
(100%)
packages/ui/.loki/reference/chrome_laptop_Components_Button_Primary_Disabled.png
Oops, something went wrong.
Binary file modified
BIN
+7 Bytes
(100%)
packages/ui/.loki/reference/chrome_laptop_Components_Button_Secondary_Disabled.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...ges/ui/.loki/reference/chrome_laptop_Components_Button_Transparent_Disabled.png
Oops, something went wrong.
Binary file modified
BIN
+18 Bytes
(100%)
packages/ui/.loki/reference/chrome_laptop_Components_Checkbox_With_Description.png
Oops, something went wrong.
Binary file modified
BIN
+32 Bytes
(100%)
packages/ui/.loki/reference/chrome_laptop_Components_Checkbox_With_Error.png
Oops, something went wrong.
Binary file modified
BIN
+15 Bytes
(100%)
packages/ui/.loki/reference/chrome_laptop_Components_Help_Text_With_Help.png
Oops, something went wrong.
Binary file modified
BIN
+15 Bytes
(100%)
.../ui/.loki/reference/chrome_laptop_Components_Help_Text_With_Help_No_Padding.png
Oops, something went wrong.
Binary file added
BIN
+5.34 KB
...ages/ui/.loki/reference/chrome_laptop_Components_Tooltip_Auto_End_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.34 KB
packages/ui/.loki/reference/chrome_laptop_Components_Tooltip_Auto_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.34 KB
...es/ui/.loki/reference/chrome_laptop_Components_Tooltip_Auto_Start_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.33 KB
...es/ui/.loki/reference/chrome_laptop_Components_Tooltip_Bottom_End_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.34 KB
packages/ui/.loki/reference/chrome_laptop_Components_Tooltip_Bottom_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.34 KB
.../ui/.loki/reference/chrome_laptop_Components_Tooltip_Bottom_Start_Placement.png
Oops, something went wrong.
Binary file added
BIN
+3.69 KB
packages/ui/.loki/reference/chrome_laptop_Components_Tooltip_Default.png
Oops, something went wrong.
Binary file added
BIN
+26.3 KB
...ges/ui/.loki/reference/chrome_laptop_Components_Tooltip_Interactive_Content.png
Oops, something went wrong.
Binary file added
BIN
+5.44 KB
...ages/ui/.loki/reference/chrome_laptop_Components_Tooltip_Left_End_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.34 KB
packages/ui/.loki/reference/chrome_laptop_Components_Tooltip_Left_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.36 KB
...es/ui/.loki/reference/chrome_laptop_Components_Tooltip_Left_Start_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.47 KB
...ges/ui/.loki/reference/chrome_laptop_Components_Tooltip_Right_End_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.36 KB
packages/ui/.loki/reference/chrome_laptop_Components_Tooltip_Right_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.39 KB
...s/ui/.loki/reference/chrome_laptop_Components_Tooltip_Right_Start_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.34 KB
packages/ui/.loki/reference/chrome_laptop_Components_Tooltip_Top_End_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.34 KB
packages/ui/.loki/reference/chrome_laptop_Components_Tooltip_Top_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.34 KB
...ges/ui/.loki/reference/chrome_laptop_Components_Tooltip_Top_Start_Placement.png
Oops, something went wrong.
Binary file added
BIN
+3.69 KB
packages/ui/.loki/reference/chrome_laptop_Components_Tooltip_Visible_False.png
Oops, something went wrong.
Binary file modified
BIN
+16 Bytes
(100%)
packages/ui/.loki/reference/chrome_minimal_Components_Button_Primary_Disabled.png
Oops, something went wrong.
Binary file modified
BIN
+8 Bytes
(100%)
...ages/ui/.loki/reference/chrome_minimal_Components_Button_Secondary_Disabled.png
Oops, something went wrong.
Binary file modified
BIN
+1 Byte
(100%)
...es/ui/.loki/reference/chrome_minimal_Components_Button_Transparent_Disabled.png
Oops, something went wrong.
Binary file modified
BIN
+18 Bytes
(100%)
...ages/ui/.loki/reference/chrome_minimal_Components_Checkbox_With_Description.png
Oops, something went wrong.
Binary file modified
BIN
+31 Bytes
(100%)
packages/ui/.loki/reference/chrome_minimal_Components_Checkbox_With_Error.png
Oops, something went wrong.
Binary file modified
BIN
+15 Bytes
(100%)
packages/ui/.loki/reference/chrome_minimal_Components_Help_Text_With_Help.png
Oops, something went wrong.
Binary file modified
BIN
+14 Bytes
(100%)
...ui/.loki/reference/chrome_minimal_Components_Help_Text_With_Help_No_Padding.png
Oops, something went wrong.
Binary file added
BIN
+5.28 KB
...ges/ui/.loki/reference/chrome_minimal_Components_Tooltip_Auto_End_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.27 KB
packages/ui/.loki/reference/chrome_minimal_Components_Tooltip_Auto_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.28 KB
...s/ui/.loki/reference/chrome_minimal_Components_Tooltip_Auto_Start_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.28 KB
...s/ui/.loki/reference/chrome_minimal_Components_Tooltip_Bottom_End_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.27 KB
packages/ui/.loki/reference/chrome_minimal_Components_Tooltip_Bottom_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.28 KB
...ui/.loki/reference/chrome_minimal_Components_Tooltip_Bottom_Start_Placement.png
Oops, something went wrong.
Binary file added
BIN
+3.63 KB
packages/ui/.loki/reference/chrome_minimal_Components_Tooltip_Default.png
Oops, something went wrong.
Binary file added
BIN
+26 KB
...es/ui/.loki/reference/chrome_minimal_Components_Tooltip_Interactive_Content.png
Oops, something went wrong.
Binary file added
BIN
+5.39 KB
...ges/ui/.loki/reference/chrome_minimal_Components_Tooltip_Left_End_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.29 KB
packages/ui/.loki/reference/chrome_minimal_Components_Tooltip_Left_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.31 KB
...s/ui/.loki/reference/chrome_minimal_Components_Tooltip_Left_Start_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.41 KB
...es/ui/.loki/reference/chrome_minimal_Components_Tooltip_Right_End_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.31 KB
packages/ui/.loki/reference/chrome_minimal_Components_Tooltip_Right_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.33 KB
.../ui/.loki/reference/chrome_minimal_Components_Tooltip_Right_Start_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.28 KB
...ages/ui/.loki/reference/chrome_minimal_Components_Tooltip_Top_End_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.28 KB
packages/ui/.loki/reference/chrome_minimal_Components_Tooltip_Top_Placement.png
Oops, something went wrong.
Binary file added
BIN
+5.28 KB
...es/ui/.loki/reference/chrome_minimal_Components_Tooltip_Top_Start_Placement.png
Oops, something went wrong.
Binary file added
BIN
+3.63 KB
packages/ui/.loki/reference/chrome_minimal_Components_Tooltip_Visible_False.png
Oops, something went wrong.
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,254 @@ | ||
import React, { FC, HTMLProps } from 'react' | ||
import { Button } from '../src/Button' | ||
|
||
import { Tooltip } from '../src/Tooltip' | ||
|
||
import utilStyles from './utils.scss' | ||
|
||
export default { | ||
title: 'Components/Tooltip', | ||
component: Tooltip, | ||
} | ||
|
||
const Container: FC<HTMLProps<HTMLDivElement>> = ({ children, style, ...props }) => ( | ||
<div className={utilStyles.wrapperCentered} style={{ padding: 100, ...style }} {...props}> | ||
{children} | ||
</div> | ||
) | ||
|
||
export const Default = () => ( | ||
<Container> | ||
<Tooltip id="tooltip-default" content={'Tooltip content'}> | ||
{(ref) => ( | ||
<Button ref={ref} aria-labelledby="tooltip-default"> | ||
Hover me | ||
</Button> | ||
)} | ||
</Tooltip> | ||
</Container> | ||
) | ||
|
||
Default.parameters = { | ||
design: { | ||
type: 'figma', | ||
url: 'https://www.figma.com/file/kaC3jgqMSgqMEgnv7TIse1/%F0%9F%93%90Sign-in-flow?node-id=118%3A2349', | ||
}, | ||
} | ||
|
||
export const AutoPlacement = () => ( | ||
<Container> | ||
<Tooltip id="tooltip-placement-auto" placement="auto" content={'Tooltip content'} visible> | ||
{(ref) => ( | ||
<Button ref={ref} aria-labelledby="tooltip-placement-auto"> | ||
Hover me | ||
</Button> | ||
)} | ||
</Tooltip> | ||
</Container> | ||
) | ||
|
||
export const AutoStartPlacement = () => ( | ||
<Container> | ||
<Tooltip id="tooltip-placement-auto-start" placement="auto-start" content={'Tooltip content'} visible> | ||
{(ref) => ( | ||
<Button ref={ref} aria-labelledby="tooltip-placement-auto-start"> | ||
Hover me | ||
</Button> | ||
)} | ||
</Tooltip> | ||
</Container> | ||
) | ||
|
||
export const AutoEndPlacement = () => ( | ||
<Container> | ||
<Tooltip id="tooltip-placement-auto-end" placement="auto-end" content={'Tooltip content'} visible> | ||
{(ref) => ( | ||
<Button ref={ref} aria-labelledby="tooltip-placement-auto-end"> | ||
Hover me | ||
</Button> | ||
)} | ||
</Tooltip> | ||
</Container> | ||
) | ||
|
||
export const TopPlacement = () => ( | ||
<Container> | ||
<Tooltip id="tooltip-placement-top" placement="top" content={'Tooltip content'} visible> | ||
{(ref) => ( | ||
<Button ref={ref} aria-labelledby="tooltip-placement-top"> | ||
Hover me | ||
</Button> | ||
)} | ||
</Tooltip> | ||
</Container> | ||
) | ||
|
||
export const TopStartPlacement = () => ( | ||
<Container> | ||
<Tooltip id="tooltip-placement-top-start" placement="top-start" content={'Tooltip content'} visible> | ||
{(ref) => ( | ||
<Button ref={ref} aria-labelledby="tooltip-placement-top-start"> | ||
Hover me | ||
</Button> | ||
)} | ||
</Tooltip> | ||
</Container> | ||
) | ||
|
||
export const TopEndPlacement = () => ( | ||
<Container> | ||
<Tooltip id="tooltip-placement-top-end" placement="top-end" content={'Tooltip content'} visible> | ||
{(ref) => ( | ||
<Button ref={ref} aria-labelledby="tooltip-placement-top-end"> | ||
Hover me | ||
</Button> | ||
)} | ||
</Tooltip> | ||
</Container> | ||
) | ||
|
||
export const RightPlacement = () => ( | ||
<Container> | ||
<Tooltip id="tooltip-placement-right" placement="right" content={'Tooltip content'} visible> | ||
{(ref) => ( | ||
<Button ref={ref} aria-labelledby="tooltip-placement-right"> | ||
Hover me | ||
</Button> | ||
)} | ||
</Tooltip> | ||
</Container> | ||
) | ||
|
||
export const RightStartPlacement = () => ( | ||
<Container> | ||
<Tooltip id="tooltip-placement-right-start" placement="right-start" content={'Tooltip content'} visible> | ||
{(ref) => ( | ||
<Button ref={ref} aria-labelledby="tooltip-placement-right-start"> | ||
Hover me | ||
</Button> | ||
)} | ||
</Tooltip> | ||
</Container> | ||
) | ||
|
||
export const RightEndPlacement = () => ( | ||
<Container> | ||
<Tooltip id="tooltip-placement-right-end" placement="right-end" content={'Tooltip content'} visible> | ||
{(ref) => ( | ||
<Button ref={ref} aria-labelledby="tooltip-placement-right-start"> | ||
Hover me | ||
</Button> | ||
)} | ||
</Tooltip> | ||
</Container> | ||
) | ||
|
||
export const BottomPlacement = () => ( | ||
<Container> | ||
<Tooltip id="tooltip-placement-bottom" placement="bottom" content={'Tooltip content'} visible> | ||
{(ref) => ( | ||
<Button ref={ref} aria-labelledby="tooltip-placement-bottom"> | ||
Hover me | ||
</Button> | ||
)} | ||
</Tooltip> | ||
</Container> | ||
) | ||
|
||
export const BottomStartPlacement = () => ( | ||
<Container> | ||
<Tooltip id="tooltip-placement-bottom-start" placement="bottom-start" content={'Tooltip content'} visible> | ||
{(ref) => ( | ||
<Button ref={ref} aria-labelledby="tooltip-placement-bottom-start"> | ||
Hover me | ||
</Button> | ||
)} | ||
</Tooltip> | ||
</Container> | ||
) | ||
|
||
export const BottomEndPlacement = () => ( | ||
<Container> | ||
<Tooltip id="tooltip-placement-bottom-end" placement="bottom-end" content={'Tooltip content'} visible> | ||
{(ref) => ( | ||
<Button ref={ref} aria-labelledby="tooltip-placement-bottom-end"> | ||
Hover me | ||
</Button> | ||
)} | ||
</Tooltip> | ||
</Container> | ||
) | ||
|
||
export const LeftPlacement = () => ( | ||
<Container> | ||
<Tooltip id="tooltip-placement-left" placement="left" content={'Tooltip content'} visible> | ||
{(ref) => ( | ||
<Button ref={ref} aria-labelledby="tooltip-placement-left"> | ||
Hover me | ||
</Button> | ||
)} | ||
</Tooltip> | ||
</Container> | ||
) | ||
|
||
export const LeftStartPlacement = () => ( | ||
<Container> | ||
<Tooltip id="tooltip-placement-left-start" placement="left-start" content={'Tooltip content'} visible> | ||
{(ref) => ( | ||
<Button ref={ref} aria-labelledby="tooltip-placement-left-start"> | ||
Hover me | ||
</Button> | ||
)} | ||
</Tooltip> | ||
</Container> | ||
) | ||
|
||
export const LeftEndPlacement = () => ( | ||
<Container> | ||
<Tooltip id="tooltip-placement-left-end" placement="left-end" content={'Tooltip content'} visible> | ||
{(ref) => ( | ||
<Button ref={ref} aria-labelledby="tooltip-placement-left-end"> | ||
Hover me | ||
</Button> | ||
)} | ||
</Tooltip> | ||
</Container> | ||
) | ||
|
||
export const InteractiveContent = () => ( | ||
<Container style={{ padding: 250 }}> | ||
<Tooltip | ||
id="tooltip-interactive-content" | ||
content={ | ||
<> | ||
<p> | ||
Parley come about mutiny swing the lead to go on account run a shot across the bow schooner fathom bounty carouser. Maroon | ||
killick keel driver scourge of the seven seas Jolly Roger hands spyglass Brethren of the Coast booty. Boom rigging gally Plate | ||
Fleet pink dance the hempen jig bilge water measured fer yer chains take a caulk tender. | ||
</p> | ||
|
||
<Button>Aye Captain!</Button> | ||
</> | ||
} | ||
visible | ||
> | ||
{(ref) => ( | ||
<Button ref={ref} aria-labelledby="tooltip-interactive-content"> | ||
Hover me | ||
</Button> | ||
)} | ||
</Tooltip> | ||
</Container> | ||
) | ||
|
||
export const VisibleFalse = () => ( | ||
<Container> | ||
<Tooltip id="tooltip-disabled" content={'Tooltip content'} visible={false}> | ||
{(ref) => ( | ||
<Button ref={ref} aria-labelledby="tooltip-disabled"> | ||
Hover me | ||
</Button> | ||
)} | ||
</Tooltip> | ||
</Container> | ||
) |
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,5 @@ | ||
.wrapperCentered { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
} |
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
Oops, something went wrong.