Skip to content

Commit

Permalink
add story for interaction editor (#903)
Browse files Browse the repository at this point in the history
  • Loading branch information
handeyeco authored Jan 4, 2024
1 parent 7709ab5 commit d633281
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import {ApiOptions} from "@khanacademy/perseus";
import {action} from "@storybook/addon-actions";
import * as React from "react";

import InteractionEditor from "../interaction-editor";

type StoryArgs = Record<any, any>;

type Story = {
title: string;
};

export default {
title: "Perseus/Editor/Widgets/Interaction Editor",
} as Story;

export const Default = (args: StoryArgs): React.ReactElement => {
return (
<InteractionEditor
onChange={action("onChange")}
apiOptions={ApiOptions.defaults}
/>
);
};

0 comments on commit d633281

Please sign in to comment.