@@ -85,12 +85,23 @@ const BackgroundColorTemplate: StoryFn<BackgroundCardProps> = (args) => (
8585 </ div >
8686) ;
8787
88+ const WithUrlTemplate : StoryFn < { items : BackgroundCardProps [ ] } > = ( args ) => (
89+ < div style = { { display : 'flex' } } >
90+ { args . items . map ( ( item , i ) => (
91+ < div style = { { maxWidth : '400px' , padding : '0 8px' } } key = { i } >
92+ < BackgroundCard { ...item } />
93+ </ div >
94+ ) ) }
95+ </ div >
96+ ) ;
97+
8898export const Default = DefaultTemplate . bind ( { } ) ;
8999export const WithBackgroundImage = DefaultTemplate . bind ( { } ) ;
90100export const Paddings = PaddingsTemplate . bind ( { } ) ;
91101export const CardThemes = CardThemesTemplate . bind ( [ ] ) ;
92102export const BorderLine = DefaultTemplate . bind ( { } ) ;
93103export const BackgroundColor = BackgroundColorTemplate . bind ( { } ) ;
104+ export const WithUrl = WithUrlTemplate . bind ( { } ) ;
94105
95106const DefaultArgs = {
96107 title : data . common . title ,
@@ -128,3 +139,17 @@ BackgroundColor.args = {
128139 ...DefaultArgs ,
129140 ...data . backgroundColor . content ,
130141} as BackgroundCardProps ;
142+
143+ WithUrl . args = {
144+ items : [
145+ data . cardThemes . content [ 1 ] ,
146+ data . withBackgroundImage . content ,
147+ data . borderLine . content ,
148+ data . backgroundColor . content ,
149+ data . borderNone . content ,
150+ ] . map ( ( item ) => ( {
151+ ...DefaultArgs ,
152+ ...item ,
153+ url : data . url ,
154+ } ) ) as BackgroundCardProps [ ] ,
155+ } ;
0 commit comments