snowballtools-base/packages/frontend/src/stories/Components/Icons/ChevronUpDown.stories.tsx
Vivian Phung af31fac3ee
chore(storybook): icons to correct folder (#216)
This pull request refactors several aspects of the frontend codebase focused on Storybook configurations and icon story files. It replaces `args` with `argTypes` to enhance control configurations, adds `staticDirs` for public assets in Storybook, and standardizes the titles of some icon stories.
2024-06-22 17:27:37 -04:00

30 lines
574 B
TypeScript

import { Meta, StoryObj } from '@storybook/react';
import { ChevronUpDown } from 'components/shared/CustomIcon';
const meta: Meta<typeof ChevronUpDown> = {
title: 'Icons/ChevronUpDown',
component: ChevronUpDown,
tags: ['autodocs'],
argTypes: {
size: {
control: 'text',
},
name: {
control: 'text',
},
},
};
export default meta;
type Story = StoryObj<typeof ChevronUpDown>;
export const Default: Story = {
render: ({ size, name }) => <ChevronUpDown size={size} name={name} />,
args: {
size: '24px',
name: 'plus',
},
};