Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions projects/igniteui-angular/badge/src/badge/badge.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ export type IgxBadgeType = (typeof IgxBadgeType)[keyof typeof IgxBadgeType];
*
* @example
* ```html
* <igx-avatar>
* <igx-badge icon="check" type="success"></igx-badge>
* </igx-avatar>
* <div class="wrapper">
* <igx-avatar icon="person" shape="circle" size="small"></igx-avatar>
* <igx-badge icon="check" type="success" shape="square"></igx-badge>
* </div>
* ```
*/
@Component({
selector: 'igx-badge',
Expand Down
7 changes: 4 additions & 3 deletions skills/igniteui-angular-components/references/data-display.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,10 @@ import { IgxBadgeComponent } from 'igniteui-angular/badge';

```html
<!-- Image avatar with badge overlay -->
<igx-avatar [src]="user.photo" shape="circle" size="large">
<igx-badge igxAvatarBadge [type]="'success'" [icon]="'check'"></igx-badge>
</igx-avatar>
<div class="wrapper">
<igx-avatar [src]="user.photo" shape="circle" size="large"></igx-avatar>
<igx-badge [type]="'success'" [icon]="'check'"></igx-badge>
</div>
Comment on lines +136 to +139

<!-- Initials avatar -->
<igx-avatar initials="JD" shape="circle"></igx-avatar>
Expand Down
Loading