Skip to content

Commit

Permalink
create story file for <Token> component
Browse files Browse the repository at this point in the history
  • Loading branch information
bsgribtmfu committed Dec 28, 2021
1 parent 94f4f96 commit b7a693c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Stories/Token.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import * as React from "react";
import { storiesOf } from "@storybook/react";
import { action } from "@storybook/addon-actions";
import Token from "../Components/Token/Token";

storiesOf("Token", module)
.addDecorator((story) => <div style={{ margin: 20 }}>{story()}</div>)
.add("removable", () => (
<Token type="removable" onRemove={action("onRemove")}>
dev
</Token>
))
.add("selectable", () => (
<Token type="selectable" onClick={action("handleClick")}>
dev
</Token>
));

0 comments on commit b7a693c

Please sign in to comment.