UNPKG

1.25 kBTypeScriptView Raw
1import { ComponentInterface } from '../../stencil-public-runtime';
2import { SegmentButtonLayout } from '../../interface';
3import { ButtonInterface } from '../../utils/element-interface';
4/**
5 * @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use.
6 *
7 * @part native - The native HTML button element that wraps all child elements.
8 * @part indicator - The indicator displayed on the checked segment button.
9 * @part indicator-background - The background element for the indicator displayed on the checked segment button.
10 */
11export declare class SegmentButton implements ComponentInterface, ButtonInterface {
12 private segmentEl;
13 el: HTMLElement;
14 checked: boolean;
15 /**
16 * If `true`, the user cannot interact with the segment button.
17 */
18 disabled: boolean;
19 /**
20 * Set the layout of the text and icon in the segment.
21 */
22 layout?: SegmentButtonLayout;
23 /**
24 * The type of the button.
25 */
26 type: 'submit' | 'reset' | 'button';
27 /**
28 * The value of the segment button.
29 */
30 value: string;
31 connectedCallback(): void;
32 disconnectedCallback(): void;
33 private get hasLabel();
34 private get hasIcon();
35 private updateStyle;
36 private updateState;
37 private get tabIndex();
38 render(): any;
39}