mirror of
https://github.com/hanzonet/explore.git
synced 2026-10-30 18:16:57 +00:00
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
import React from 'react';
|
|
|
|
import { Tooltip } from 'toolkit/chakra/tooltip';
|
|
import Utilization from 'ui/shared/Utilization/Utilization';
|
|
|
|
import { Section, Container, SectionHeader, SamplesStack, Sample } from './parts';
|
|
|
|
const TooltipShowcase = () => {
|
|
return (
|
|
<Container value="tooltip">
|
|
<Section>
|
|
<SectionHeader>Variant</SectionHeader>
|
|
<SamplesStack>
|
|
<Sample label="variant: regular">
|
|
<Tooltip content="Tooltip content">
|
|
<span>Default</span>
|
|
</Tooltip>
|
|
<Tooltip content="Tooltip content" interactive>
|
|
<Utilization value={ 0.5 }/>
|
|
</Tooltip>
|
|
</Sample>
|
|
<Sample label="variant: navigation">
|
|
<Tooltip content="Tooltip content" variant="navigation">
|
|
<span>Default</span>
|
|
</Tooltip>
|
|
</Sample>
|
|
<Sample label="variant: popover">
|
|
<Tooltip content="Tooltip content" variant="popover">
|
|
<span>Default</span>
|
|
</Tooltip>
|
|
</Sample>
|
|
</SamplesStack>
|
|
</Section>
|
|
</Container>
|
|
);
|
|
};
|
|
|
|
export default React.memo(TooltipShowcase);
|