Skip to content

Commit efc462c

Browse files
spaceokasperbirch1
authored andcommitted
Update tag story to reflect prop changes
1 parent 66ed6d5 commit efc462c

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

src/stories/Library/search-result-page/FacetLine.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import * as React from "react";
21
import { FC } from "react";
32
import { Dropdown } from "../dropdown/Dropdown";
43
import { Tag } from "../tag/Tag";

src/stories/Library/search-result-page/FacetLineSelected.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import * as React from "react";
21
import { FC } from "react";
32
import { Tag } from "../tag/Tag";
43
import { FacetLineItem } from "./FacetLine";

src/stories/Library/tag/Tag.stories.tsx

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,25 @@ export default {
1818
},
1919
};
2020

21-
const Template: ComponentStory<TagProps> = (args) => <TagComp {...args} />;
22-
23-
export const Tag = Template.bind({});
21+
export const Tag: ComponentStory<TagProps> = (args) => (
22+
<TagComp {...args}>Vi anbefaler</TagComp>
23+
);
2424
Tag.args = {
25-
label: "Vi anbefaler",
26-
removable: false,
25+
size: "large",
26+
hasBackground: true,
2727
};
2828

29-
export const TagRemovable = Template.bind({});
29+
export const TagRemovable: ComponentStory<TagProps> = (args) => (
30+
<TagComp {...args}>Litteratur</TagComp>
31+
);
3032
TagRemovable.args = {
31-
label: "Litteratur",
32-
removable: true,
33+
showCloseIcon: true,
34+
hasBackground: true,
3335
};
3436

35-
export const facet = Template.bind({});
37+
export const facet: ComponentStory<TagProps> = (args) => (
38+
<TagComp {...args}>Skønlitteratur (96)</TagComp>
39+
);
3640
facet.args = {
37-
label: "Skønlitteratur (96)",
38-
removable: false,
39-
facet: true,
41+
hasBackground: false,
4042
};

0 commit comments

Comments
 (0)