forked from cerc-io/snowballtools-base
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.
30 lines
574 B
TypeScript
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',
|
|
},
|
|
};
|