tgui-angular
Version:
🚀 Angular UI library for Telegram Web Apps with modern components and theming support | 💼 Author is open to work opportunities | 📧 Contact: a.blagovestnov@gmail.com | 💬 Telegram: @ablagovestnov
25 lines (24 loc) • 1.14 kB
TypeScript
import { WritableSignal } from '@angular/core';
import { PlatformService } from '../../../services/platform.service';
import * as i0 from "@angular/core";
/**
* Represents an individual tab within a `Tabbar`.
* Each `TabbarItem` typically contains an icon and optional text.
* When selected, the tab exhibits different visual styles to indicate its active state.
*
* The component adapts its styling based on the platform, providing a consistent look and feel across different devices.
*/
export declare class TabbarItemComponent {
protected platformService: PlatformService;
text: import("@angular/core").InputSignal<string>;
selected: WritableSignal<boolean>;
tabIndex: number;
onSelect: () => void;
get isIOS(): boolean;
get isSelected(): boolean;
onClick(): void;
iconContent: any;
get hasIcon(): boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<TabbarItemComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TabbarItemComponent, "tgui-tabbar-item", never, { "text": { "alias": "text"; "required": false; "isSignal": true; }; }, {}, ["iconContent"], ["*"], true, never>;
}