Files
artcraft/frontend/editor3d/app/components/reusable/ButtonIconSelect/ButtonIconSelect.stories.tsx
T
Brandon Thomas b31badc6d1 Editor3D - this directory is a fork of "studio gen 2" by Tanish.
We'll be using this for our image generation roadmap:

https://docs.google.com/document/d/1O9YI_iLwXkl2wAJJ23dFp3eHR-JzhlRHCBPD8psG-1E/edit

The original Studio Gen 2 is in the `frontend/studio-gen-2` directory.

The original Studio Gen 1 is in the `frontend/studio-gen-1` directory
2025-03-31 13:28:59 -04:00

39 lines
854 B
TypeScript

import type { Meta, StoryObj } from "@storybook/react";
import { ButtonIconSelect } from "./ButtonIconSelect";
import { withActions } from "@storybook/addon-actions/decorator";
import { faAngleLeft, faAngleRight } from "@fortawesome/pro-solid-svg-icons";
const meta: Meta<typeof ButtonIconSelect> = {
component: ButtonIconSelect,
parameters: {
actions: {
handles: ["click"],
},
},
decorators: [withActions],
};
type Story = StoryObj<typeof ButtonIconSelect>;
export const Default: Story = {
render: () => (
<ButtonIconSelect
onOptionChange={() => {}}
options={[
{
value: "V1",
icon: faAngleLeft,
text: "Select 1",
},
{
value: "V2",
icon: faAngleRight,
text: "Select 2",
},
]}
/>
),
};
export default meta;