UNPKG

@wikimedia/codex

Version:

Codex Design System for Wikimedia

65 lines (64 loc) 2.05 kB
import { TabData } from '../../types'; /** * A section of content within a Tabs layout. */ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{ /** * String name of the tab, used for programmatic selection. Each Tab * inside a layout must have a unique name. This prop will also be * used as the tab label if no "label" prop is provided. */ name: { type: StringConstructor; required: true; }; /** * Label that corresponds to this Tab in the Tabs component's header. * Lengthy labels will be truncated. */ label: { type: StringConstructor; default: string; }; /** * Whether or not the tab is disabled. Disabled tabs cannot be accessed * via label clicks or keyboard navigation. */ disabled: { type: BooleanConstructor; default: boolean; }; }>, { tab: TabData; isActive: import("vue").ComputedRef<boolean>; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ /** * String name of the tab, used for programmatic selection. Each Tab * inside a layout must have a unique name. This prop will also be * used as the tab label if no "label" prop is provided. */ name: { type: StringConstructor; required: true; }; /** * Label that corresponds to this Tab in the Tabs component's header. * Lengthy labels will be truncated. */ label: { type: StringConstructor; default: string; }; /** * Whether or not the tab is disabled. Disabled tabs cannot be accessed * via label clicks or keyboard navigation. */ disabled: { type: BooleanConstructor; default: boolean; }; }>> & Readonly<{}>, { label: string; disabled: boolean; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; export default _default;