mirror of
https://github.com/hanzoai/cd-ui.git
synced 2026-10-30 20:42:45 +00:00
make tooltip body persistent Signed-off-by: Pete Davids <[email protected]>
23 lines
504 B
TypeScript
23 lines
504 B
TypeScript
import * as React from 'react';
|
|
import Text from '../text/text';
|
|
import {Tooltip} from './tooltip';
|
|
|
|
export default {
|
|
component: Tooltip,
|
|
title: 'Components/Tooltip',
|
|
};
|
|
|
|
export const Primary = (args: any) => {
|
|
return (
|
|
<div style={{padding:'1em', width: 'fit-content'}}>
|
|
<Tooltip {...args} content={<Text>{args.content}</Text>}>
|
|
<Text>Hover over me!</Text>
|
|
</Tooltip>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
Primary.args = {
|
|
content: 'Hello there!',
|
|
};
|