@@ -73,11 +73,19 @@ When using `<Button href="" />` that are used to trigger in-page functionality (
7373rather than linking to new pages or sections within the current page.
7474
7575<Example >
76- <Button href = " https://web-cell.dev/" >Link</Button >
77- <Button type = " submit" >Button</Button >
78- <Button >Input</Button >
79- <Button type = " submit" >Submit</Button >
80- <Button type = " reset" >Reset</Button >
76+ <Button color = " primary" href = " https://web-cell.dev/" >
77+ Link
78+ </Button >
79+ <Button color = " primary" type = " submit" >
80+ Button
81+ </Button >
82+ <Button color = " primary" >Input</Button >
83+ <Button color = " primary" type = " submit" >
84+ Submit
85+ </Button >
86+ <Button color = " primary" type = " reset" >
87+ Reset
88+ </Button >
8189</Example >
8290
8391``` TSX
@@ -86,11 +94,19 @@ import { Button } from 'boot-cell/source/Form/Button';
8694
8795render (
8896 <>
89- <Button href = " https://web-cell.dev/" >Link</Button >
90- <Button type = " submit" >Button</Button >
91- <Button >Input</Button >
92- <Button type = " submit" >Submit</Button >
93- <Button type = " reset" >Reset</Button >
97+ <Button color = " primary" href = " https://web-cell.dev/" >
98+ Link
99+ </Button >
100+ <Button color = " primary" type = " submit" >
101+ Button
102+ </Button >
103+ <Button color = " primary" >Input</Button >
104+ <Button color = " primary" type = " submit" >
105+ Submit
106+ </Button >
107+ <Button color = " primary" type = " reset" >
108+ Reset
109+ </Button >
94110 </>
95111);
96112```
@@ -144,7 +160,9 @@ render([
144160Fancy larger or smaller buttons? Add ` size="lg" ` or ` size="sm" ` for additional sizes.
145161
146162<Example >
147- <Button size = " lg" >Large button</Button >
163+ <Button color = " primary" size = " lg" >
164+ Large button
165+ </Button >
148166 <Button color = " secondary" size = " lg" >
149167 Large button
150168 </Button >
@@ -156,7 +174,9 @@ import { Button } from 'boot-cell/source/Form/Button';
156174
157175render (
158176 <>
159- <Button size = " lg" >Large button</Button >
177+ <Button color = " primary" size = " lg" >
178+ Large button
179+ </Button >
160180 <Button color = " secondary" size = " lg" >
161181 Large button
162182 </Button >
@@ -165,7 +185,9 @@ render(
165185```
166186
167187<Example >
168- <Button size = " sm" >Small button</Button >
188+ <Button color = " primary" size = " sm" >
189+ Small button
190+ </Button >
169191 <Button color = " secondary" size = " sm" >
170192 Small button
171193 </Button >
@@ -177,7 +199,9 @@ import { Button } from 'boot-cell/source/Form/Button';
177199
178200render (
179201 <>
180- <Button size = " sm" >Small button</Button >
202+ <Button color = " primary" size = " sm" >
203+ Small button
204+ </Button >
181205 <Button color = " secondary" size = " sm" >
182206 Small button
183207 </Button >
@@ -188,7 +212,7 @@ render(
188212Create block level buttons — those that span the full width of a parent—by adding ` block ` property.
189213
190214<Example >
191- <Button size = " lg" block >
215+ <Button color = " primary " size = " lg" block >
192216 Block level button
193217 </Button >
194218 <Button color = " secondary" size = " lg" block >
@@ -202,7 +226,7 @@ import { Button } from 'boot-cell/source/Form/Button';
202226
203227render (
204228 <>
205- <Button size = " lg" block >
229+ <Button color = " primary " size = " lg" block >
206230 Block level button
207231 </Button >
208232 <Button color = " secondary" size = " lg" block >
@@ -220,7 +244,13 @@ However, you can still force the same active appearance with `.active` (and incl
220244should you need to replicate the state programmatically.
221245
222246<Example >
223- <Button size = " lg" className = " active" aria-pressed = " true" href = " #" >
247+ <Button
248+ color = " primary"
249+ size = " lg"
250+ className = " active"
251+ aria-pressed = " true"
252+ href = " #"
253+ >
224254 Primary link
225255 </Button >
226256 <Button
@@ -240,7 +270,13 @@ import { Button } from 'boot-cell/source/Form/Button';
240270
241271render (
242272 <>
243- <Button size = " lg" className = " active" aria-pressed = " true" href = " #" >
273+ <Button
274+ color = " primary"
275+ size = " lg"
276+ className = " active"
277+ aria-pressed = " true"
278+ href = " #"
279+ >
244280 Primary link
245281 </Button >
246282 <Button
@@ -261,7 +297,7 @@ render(
261297Make buttons look inactive by adding the ` disabled ` boolean property to any ` <Button /> ` component.
262298
263299<Example >
264- <Button size = " lg" disabled >
300+ <Button color = " primary " size = " lg" disabled >
265301 Primary button
266302 </Button >
267303 <Button color = " secondary" size = " lg" disabled >
@@ -275,7 +311,7 @@ import { Button } from 'boot-cell/source/Form/Button';
275311
276312render (
277313 <>
278- <Button size = " lg" disabled >
314+ <Button color = " primary " size = " lg" disabled >
279315 Primary button
280316 </Button >
281317 <Button color = " secondary" size = " lg" disabled >
@@ -286,7 +322,7 @@ render(
286322```
287323
288324<Example >
289- <Button size = " lg" href = " https://web-cell.dev/" disabled >
325+ <Button color = " primary " size = " lg" href = " https://web-cell.dev/" disabled >
290326 Primary button
291327 </Button >
292328 <Button color = " secondary" size = " lg" href = " https://web-cell.dev/" disabled >
@@ -300,7 +336,7 @@ import { Button } from 'boot-cell/source/Form/Button';
300336
301337render (
302338 <>
303- <Button size = " lg" href = " https://web-cell.dev/" disabled >
339+ <Button color = " primary " size = " lg" href = " https://web-cell.dev/" disabled >
304340 Primary button
305341 </Button >
306342 <Button color = " secondary" size = " lg" href = " https://web-cell.dev/" disabled >
@@ -372,15 +408,15 @@ render(
372408` <IconButton /> ` component is built on [ ` <Icon /> ` ] [ 1 ] .
373409
374410<Example >
375- <IconButton name = " bootstrap" />
411+ <IconButton name = " bootstrap" color = " primary " />
376412</Example >
377413
378414``` TSX
379415import { render , createCell } from ' web-cell' ;
380416import { IconButton } from ' boot-cell/source/Form/Button' ;
381417
382418render (
383- <IconButton name = " bootstrap" />
419+ <IconButton name = " bootstrap" color = " primary " />
384420);
385421```
386422
0 commit comments