-
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.
- Loading branch information
Showing
10 changed files
with
74 additions
and
67 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
19 changes: 10 additions & 9 deletions
19
ui-parts/tooltip/src/container/default-container.component.tsx
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 |
---|---|---|
@@ -1,15 +1,16 @@ | ||
import React from 'react' | ||
import { forwardRef } from 'react' | ||
import { Arrow } from 'react-laag' | ||
import { forwardRef } from 'react' | ||
|
||
import { Container } from './container.component' | ||
import { DefaultContainerProps } from './container.interfaces' | ||
|
||
export const DefaultContainer = forwardRef<HTMLDivElement, DefaultContainerProps>( | ||
({ text, showArrow, arrowOptions, arrowProps, layerSide, ...props }, ref) => ( | ||
<Container ref={ref} {...props}> | ||
{text} | ||
{showArrow && <Arrow {...layerSide} {...arrowOptions} {...arrowProps} />} | ||
</Container> | ||
) | ||
) | ||
export const DefaultContainer = forwardRef<HTMLDivElement, DefaultContainerProps>(( | ||
{ text, showArrow, arrowOptions, arrowProps, layerSide, ...props }, | ||
ref | ||
) => ( | ||
<Container ref={ref} {...props}> | ||
{text} | ||
{showArrow && <Arrow {...layerSide} {...arrowOptions} {...arrowProps} />} | ||
</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
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
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
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