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/apps/meteor/client/components/dataView/PositiveGrowthSymbol.storie...

25 lines
795 B

import { Box } from '@rocket.chat/fuselage';
import type { Meta, StoryFn } from '@storybook/react';
import PositiveGrowthSymbol from './PositiveGrowthSymbol';
import { useAutoSequence } from '../../stories/hooks/useAutoSequence';
export default {
component: PositiveGrowthSymbol,
parameters: {
layout: 'centered',
controls: { hideNoControlsWarning: true },
},
decorators: [
(fn) => {
const color = useAutoSequence(['neutral-500', 'primary-500', 'danger-500', 'warning-500', 'success-500']);
return <Box color={color}>{fn()}</Box>;
},
],
} satisfies Meta<typeof PositiveGrowthSymbol>;
const Template: StoryFn<typeof PositiveGrowthSymbol> = (args) => <PositiveGrowthSymbol {...args} />;
export const Default = Template.bind({});
Default.storyName = 'PositiveGrowthSymbol';