File tree Expand file tree Collapse file tree 3 files changed +14
-14
lines changed
Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 1- import * as React from "react" ;
21import { FC } from "react" ;
32import { Dropdown } from "../dropdown/Dropdown" ;
43import { Tag } from "../tag/Tag" ;
Original file line number Diff line number Diff line change 1- import * as React from "react" ;
21import { FC } from "react" ;
32import { Tag } from "../tag/Tag" ;
43import { FacetLineItem } from "./FacetLine" ;
Original file line number Diff line number Diff 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+ ) ;
2424Tag . 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+ ) ;
3032TagRemovable . 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+ ) ;
3640facet . args = {
37- label : "Skønlitteratur (96)" ,
38- removable : false ,
39- facet : true ,
41+ hasBackground : false ,
4042} ;
You can’t perform that action at this time.
0 commit comments