From e76a5cb3c0fab52d290ebaf88fcba149a6ad1020 Mon Sep 17 00:00:00 2001 From: shiv9604 Date: Sat, 28 Dec 2024 20:06:08 +0530 Subject: [PATCH] chore(demo): migrate avatar docs api --- .../src/modules/components/avatar/index.html | 47 ++++++++++--------- .../src/modules/components/avatar/index.ts | 3 +- 2 files changed, 27 insertions(+), 23 deletions(-) diff --git a/projects/demo/src/modules/components/avatar/index.html b/projects/demo/src/modules/components/avatar/index.html index ec4dd62e2f16..4b6aa48a80e7 100644 --- a/projects/demo/src/modules/components/avatar/index.html +++ b/projects/demo/src/modules/components/avatar/index.html @@ -21,36 +21,39 @@ [src]="src" /> - - + Use round shape - - + + Size - - + + Initials, image URL, or icon name. Alternatively you can pass text as ng-content which would be styled differently from initials and fade if overflown - - + + diff --git a/projects/demo/src/modules/components/avatar/index.ts b/projects/demo/src/modules/components/avatar/index.ts index 79fbe25fe153..5c9b334c6551 100644 --- a/projects/demo/src/modules/components/avatar/index.ts +++ b/projects/demo/src/modules/components/avatar/index.ts @@ -3,12 +3,13 @@ import type {SafeResourceUrl} from '@angular/platform-browser'; import {DomSanitizer} from '@angular/platform-browser'; import {changeDetection} from '@demo/emulate/change-detection'; import {TuiDemo} from '@demo/utils'; +import {TuiDocAPI, TuiDocAPIItem} from '@taiga-ui/addon-doc'; import type {TuiSizeXS, TuiSizeXXL} from '@taiga-ui/core'; import {TuiAvatar} from '@taiga-ui/kit'; @Component({ standalone: true, - imports: [TuiAvatar, TuiDemo], + imports: [TuiAvatar, TuiDemo, TuiDocAPI, TuiDocAPIItem], templateUrl: './index.html', changeDetection, })