Updated menus, chart tooltips, styles.
This commit is contained in:
1 parent
0a16ab38e4
commit
92b283486e
23 files changed
+179
-208
No files matched your search
@@ -0,0 +1,23 @@
|
||||
import { ReactNode } from 'react';
|
||||
import { Column, Row, StatusLight, FloatingTooltip } from '@umami/react-zen';
|
||||
|
||||
export function ChartTooltip({
|
||||
title,
|
||||
color,
|
||||
value,
|
||||
}: {
|
||||
title?: string;
|
||||
color?: string;
|
||||
value?: ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<FloatingTooltip>
|
||||
<Column gap="3" fontSize="1">
|
||||
{title && <Row alignItems="center">{title}</Row>}
|
||||
<Row alignItems="center">
|
||||
<StatusLight color={color}>{value}</StatusLight>
|
||||
</Row>
|
||||
</Column>
|
||||
</FloatingTooltip>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user