|
1 | 1 | <c-row ngPreserveWhitespaces>
|
2 | 2 | <c-col xs="12">
|
3 |
| - <app-docs-callout href="components/buttons" name="Button"></app-docs-callout> |
| 3 | + <app-docs-callout href="components/button" name="Button"></app-docs-callout> |
4 | 4 | </c-col>
|
5 | 5 | <c-col xs="12">
|
6 | 6 | <c-card class="mb-4" id="AngularButton">
|
|
14 | 14 | it. CoreUI buttons are used to initialize operations, both in the background or
|
15 | 15 | foreground of an experience.
|
16 | 16 | </p>
|
17 |
| - <app-docs-example fragment="AngularButton" href="components/buttons"> |
| 17 | + <app-docs-example fragment="AngularButton" href="components/button"> |
18 | 18 | <c-row *ngFor="let state of states; index as i" class="align-items-center mb-3">
|
19 | 19 | <c-col class="mb-3 mb-xl-0" xl="2" xs="12">
|
20 | 20 | {{state.charAt(0).toUpperCase() + state.slice(1)}}
|
|
44 | 44 | <p class="text-medium-emphasis small">
|
45 | 45 | You can combine button with our <a href="https://icons.coreui.io/">CoreUI Icons</a>.
|
46 | 46 | </p>
|
47 |
| - <app-docs-example fragment="AngularButtonWithIcons" href="components/buttons"> |
| 47 | + <app-docs-example fragment="AngularButtonWithIcons" href="components/button"> |
48 | 48 | <c-row *ngFor="let state of states; index as i" class="align-items-center mb-3">
|
49 | 49 | <c-col class="mb-3 mb-xl-0" xl="2" xs="12">
|
50 | 50 | {{state.charAt(0).toUpperCase() + state.slice(1)}}
|
|
83 | 83 | should be given a <code>role="button"</code> to adequately communicate their
|
84 | 84 | meaning to assistive technologies such as screen readers.
|
85 | 85 | </p>
|
86 |
| - <app-docs-example href="components/buttons#button-components"> |
| 86 | + <app-docs-example href="components/button#button-components"> |
87 | 87 | <a cButton class="me-1" color="primary" routerLink="./">
|
88 | 88 | Link
|
89 | 89 | </a>
|
|
107 | 107 | If you need a button, but without the strong background colors. Set
|
108 | 108 | <code>variant="outline"</code> prop to remove all background colors.
|
109 | 109 | </p>
|
110 |
| - <app-docs-example href="components/buttons#outline-buttons"> |
| 110 | + <app-docs-example href="components/button#outline-buttons"> |
111 | 111 | <c-row *ngFor="let state of states; index as i" class="align-items-center mb-3">
|
112 | 112 | <c-col class="mb-3 mb-xl-0" xl="2" xs="12">
|
113 | 113 | {{state.charAt(0).toUpperCase() + state.slice(1)}}
|
|
142 | 142 | If you need a ghost variant of button, set <code>variant="ghost"</code> prop
|
143 | 143 | to remove all background colors.
|
144 | 144 | </p>
|
145 |
| - <app-docs-example href="components/buttons#ghost-buttons"> |
| 145 | + <app-docs-example href="components/button#ghost-buttons"> |
146 | 146 | <c-row *ngFor="let state of states; index as i" class="align-items-center mb-3">
|
147 | 147 | <c-col class="mb-3 mb-xl-0" xl="2" xs="12">
|
148 | 148 | {{state.charAt(0).toUpperCase() + state.slice(1)}}
|
|
177 | 177 | Larger or smaller buttons? Add <code>size="lg"</code>
|
178 | 178 | <code>size="sm"</code> for additional sizes.
|
179 | 179 | </p>
|
180 |
| - <app-docs-example href="components/buttons#sizes"> |
| 180 | + <app-docs-example href="components/button#sizes"> |
181 | 181 | <button cButton class="mb-3" color="primary" size="lg">
|
182 | 182 | Large button
|
183 | 183 | </button>
|
184 | 184 | <button cButton class="mb-3" color="secondary" size="lg">
|
185 | 185 | Large button
|
186 | 186 | </button>
|
187 | 187 | </app-docs-example>
|
188 |
| - <app-docs-example href="components/buttons#sizes"> |
| 188 | + <app-docs-example href="components/button#sizes"> |
189 | 189 | <br>
|
190 | 190 | <button cButton class="mb-3" color="primary" size="sm">
|
191 | 191 | Small button
|
|
203 | 203 | <strong>Angular Button</strong> <small>Pill</small>
|
204 | 204 | </c-card-header>
|
205 | 205 | <c-card-body>
|
206 |
| - <app-docs-example href="components/buttons#pill-buttons"> |
| 206 | + <app-docs-example href="components/button#pill-buttons"> |
207 | 207 | <ng-container *ngFor="let color of colors; index as i; last as isLast">
|
208 | 208 | <button
|
209 | 209 | *ngIf="!isLast"
|
|
225 | 225 | <strong>Angular Button</strong> <small>Square</small>
|
226 | 226 | </c-card-header>
|
227 | 227 | <c-card-body>
|
228 |
| - <app-docs-example href="components/buttons#square"> |
| 228 | + <app-docs-example href="components/button#square"> |
229 | 229 | <ng-container *ngFor="let color of colors; index as i; last as isLast">
|
230 | 230 | <button
|
231 | 231 | *ngIf="!isLast"
|
|
253 | 253 | <code>pointer-events: none</code> applied to, disabling hover and active states from
|
254 | 254 | triggering.
|
255 | 255 | </p>
|
256 |
| - <app-docs-example href="components/buttons#disabled-state"> |
| 256 | + <app-docs-example href="components/button#disabled-state"> |
257 | 257 | <button cButton color="primary" disabled size="lg">
|
258 | 258 | Primary button
|
259 | 259 | </button>
|
|
271 | 271 | <code>aria-disabled="true"</code> attribute to show the state of the component
|
272 | 272 | to assistive technologies.
|
273 | 273 | </p>
|
274 |
| - <app-docs-example href="components/buttons#disabled-state"> |
275 |
| - <a cButton color="primary" disabled routerLink="./" size="lg"> |
| 274 | + <app-docs-example href="components/button#disabled-state"> |
| 275 | + <a cButton color="primary" disabled [routerLink]="[]" size="lg"> |
276 | 276 | Primary link
|
277 | 277 | </a>
|
278 |
| - <a cButton color="secondary" disabled routerLink="./" size="lg"> |
| 278 | + <a cButton color="secondary" disabled [routerLink]="[]" size="lg"> |
279 | 279 | Link
|
280 | 280 | </a>
|
281 | 281 | </app-docs-example>
|
|
291 | 291 | <p class="text-medium-emphasis small">
|
292 | 292 | Create buttons that span the full width of a parent—by using utilities.
|
293 | 293 | </p>
|
294 |
| - <app-docs-example href="components/buttons#block-buttons"> |
| 294 | + <app-docs-example href="components/button#block-buttons"> |
295 | 295 | <div class="d-grid gap-2">
|
296 | 296 | <button cButton color="primary">Button</button>
|
297 | 297 | <button cButton color="primary">Button</button>
|
|
303 | 303 | <code>.d-grid</code> class, thus nullifying the <code>gap-2</code> utility. Resize
|
304 | 304 | your browser to see them change.
|
305 | 305 | </p>
|
306 |
| - <app-docs-example href="components/buttons#block-buttons"> |
| 306 | + <app-docs-example href="components/button#block-buttons"> |
307 | 307 | <div class="d-grid gap-2 d-md-block">
|
308 | 308 | <button cButton color="primary">Button</button>
|
309 | 309 | <button cButton color="primary">Button</button>
|
|
314 | 314 | example, for a half-width "block button", use <code>.col-6</code>. Center it
|
315 | 315 | horizontally with <code>.mx-auto</code>, too.
|
316 | 316 | </p>
|
317 |
| - <app-docs-example href="components/buttons#block-buttons"> |
| 317 | + <app-docs-example href="components/button#block-buttons"> |
318 | 318 | <div class="d-grid gap-2 col-6 mx-auto">
|
319 | 319 | <button cButton color="primary">Button</button>
|
320 | 320 | <button cButton color="primary">Button</button>
|
|
326 | 326 | a margin utility on the button to right align the buttons when they're no longer
|
327 | 327 | stacked.
|
328 | 328 | </p>
|
329 |
| - <app-docs-example href="components/buttons#block-buttons"> |
| 329 | + <app-docs-example href="components/button#block-buttons"> |
330 | 330 | <div class="d-grid gap-2 d-md-flex justify-content-md-end">
|
331 | 331 | <button cButton class="me-md-2" color="primary">
|
332 | 332 | Button
|
|
0 commit comments