Skip to content

Commit

Permalink
docs: fix example code loading button (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
oidre authored Nov 15, 2023
1 parent 17627da commit 9f3cea0
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,19 @@ export class ButtonLoadingComponent {}
export const loadingCode = `
import { Component } from '@angular/core';
import { HlmButtonDirective } from '@spartan-ng/ui-button-helm';
import { HlmSpinnerComponent } from '@spartan-ng/ui-spinner-helm';
import { HlmIconComponent } from '@spartan-ng/ui-icon-helm';
import { provideIcons } from '@ng-icons/core';
import { radixSymbol } from '@ng-icons/radix-icons';
@Component({
selector: 'spartan-button-icon',
selector: 'spartan-button-loading',
standalone: true,
imports: [HlmButtonDirective],
imports: [HlmButtonDirective, HlmSpinnerComponent, HlmIconComponent],
providers: [provideIcons({ radixSymbol })],
template: \`
<button hlmBtn variant='icon'>Icon</button> \`,})
export class ButtonIconComponent {}
<button disabled hlmBtn><hlm-icon name="radixSymbol" size="sm" class="mr-2 animate-spin" /> Please wait</button>
\`,
})
export class ButtonLoadingComponent {}
`;

1 comment on commit 9f3cea0

@vercel
Copy link

@vercel vercel bot commented on 9f3cea0 Nov 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

spartan – ./

spartan-git-main-goetzrobin.vercel.app
www.spartan.ng
spartan.ng
spartan-goetzrobin.vercel.app

Please sign in to comment.