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/client/components/data/Growth.stories.js

26 lines
612 B

import { Box } from '@rocket.chat/fuselage';
import React from 'react';
import Growth from './Growth';
export default {
title: 'components/data/Growth',
component: Growth,
decorators: [(fn) => <Box children={fn()} margin='x16' />],
};
export const Positive = () =>
<Growth>{3}</Growth>;
export const Zero = () =>
<Growth>{0}</Growth>;
export const Negative = () =>
<Growth>{-3}</Growth>;
export const WithTextStyle = () =>
['h1', 's1', 'c1', 'micro']
.map((fontScale) => <Box key={fontScale}>
<Growth fontScale={fontScale}>{3}</Growth>
<Growth fontScale={fontScale}>{-3}</Growth>
</Box>);