mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-08 02:52:12 +00:00
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
39 lines
854 B
TypeScript
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;
|