The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/ee/app/engagement-dashboard/client/components/data/LegendSymbol.stories.js

25 lines
692 B

import { Box, Margins } from '@rocket.chat/fuselage';
import React from 'react';
import { LegendSymbol } from './LegendSymbol';
import { monochromaticColors, polychromaticColors } from './colors';
export default {
title: 'admin/enterprise/engagement/data/LegendSymbol',
component: LegendSymbol,
decorators: [(fn) => <Margins children={fn()} all='x16' />],
};
export const _default = () => <Box>
<LegendSymbol />
Legend text
</Box>;
export const withColor = () => <>
{monochromaticColors.map((color) => <Box key={color}>
<LegendSymbol color={color} /> {color}
</Box>)}
{polychromaticColors.map((color) => <Box key={color}>
<LegendSymbol color={color} /> {color}
</Box>)}
</>;