UNPKG

1.28 kBTypeScriptView Raw
1import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
2import { Color, TabBarChangedEventDetail } from '../../interface';
3/**
4 * @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use.
5 */
6export declare class TabBar implements ComponentInterface {
7 private keyboardWillShowHandler?;
8 private keyboardWillHideHandler?;
9 el: HTMLElement;
10 keyboardVisible: boolean;
11 /**
12 * The color to use from your application's color palette.
13 * Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`.
14 * For more information on colors, see [theming](/docs/theming/basics).
15 */
16 color?: Color;
17 /**
18 * The selected tab component
19 */
20 selectedTab?: string;
21 selectedTabChanged(): void;
22 /**
23 * If `true`, the tab bar will be translucent.
24 * Only applies when the mode is `"ios"` and the device supports
25 * [`backdrop-filter`](https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility).
26 */
27 translucent: boolean;
28 /** @internal */
29 ionTabBarChanged: EventEmitter<TabBarChangedEventDetail>;
30 componentWillLoad(): void;
31 connectedCallback(): void;
32 disconnectedCallback(): void;
33 render(): any;
34}