@@ -122,7 +122,7 @@ export const componentData = {
122
122
this.style = {
123
123
buttonContainer: {
124
124
display: "grid",
125
- gridTemplateColumns: "auto auto auto ",
125
+ gridTemplateColumns: "repeat( auto-fill, 150px) ",
126
126
gridGap: 20,
127
127
alignItems: "center"
128
128
}
@@ -138,7 +138,7 @@ export const componentData = {
138
138
<div>
139
139
{ /* Preview Block-1 */ }
140
140
<PreviewBlock header="Styled Buttons">
141
- <PreviewElements>
141
+ <PreviewElements style={this.style.buttonContainer} >
142
142
143
143
{/* Styled Buttons with 'type' prop */}
144
144
<Button>Primary</Button>
@@ -149,7 +149,7 @@ export const componentData = {
149
149
</PreviewBlock>
150
150
{ /* Preview Block-2 */ }
151
151
<PreviewBlock header="Bordered Buttons">
152
- <PreviewElements>
152
+ <PreviewElements style={this.style.buttonContainer} >
153
153
154
154
{/* Bordered or Outlined Buttons with 'bordered' prop */}
155
155
<Button bordered type="info">info</Button>
@@ -160,7 +160,7 @@ export const componentData = {
160
160
</PreviewBlock>
161
161
{ /* Preview Block-3 */ }
162
162
<PreviewBlock header="Borderless Buttons">
163
- <PreviewElements>
163
+ <PreviewElements style={this.style.buttonContainer} >
164
164
165
165
{/* Borderless buttons with 'borderless' prop */}
166
166
<Button type="primary" borderless>Primary</Button>
@@ -171,7 +171,7 @@ export const componentData = {
171
171
</PreviewBlock>
172
172
{ /* Preview Block-4 */ }
173
173
<PreviewBlock header="Flat Buttons">
174
- <PreviewElements>
174
+ <PreviewElements style={this.style.buttonContainer} >
175
175
176
176
{/* No box shadow with 'flat' prop */}
177
177
<Button type="success" flat>Success</Button>
@@ -182,7 +182,7 @@ export const componentData = {
182
182
</PreviewBlock>
183
183
{ /* Preview Block-5 */}
184
184
<PreviewBlock header="Buttons with icons and text">
185
- <PreviewElements>
185
+ <PreviewElements style={this.style.buttonContainer} >
186
186
187
187
{/* Icon and text buttons with 'icon' prop */}
188
188
<Button type="warning" icon="icon-left">
@@ -199,7 +199,7 @@ export const componentData = {
199
199
</PreviewBlock>
200
200
{ /* Preview Block-6 */ }
201
201
<PreviewBlock header="Sizable Buttons">
202
- <PreviewElements>
202
+ <PreviewElements style={this.style.buttonContainer} >
203
203
204
204
{/* Control button sizes with 'size' prop */}
205
205
<Button size="small">
0 commit comments