import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; export type CarbonTabsContext = { tabs: import("svelte/store").Writable>; tabsById: import("svelte/store").Readable>; contentById: import("svelte/store").Readable>; /** Reverse lookup so each `Tab` can find its paired panel id by index. */ contentByIndex: import("svelte/store").Readable>; selectedTab: import("svelte/store").Writable; selectedContent: import("svelte/store").Writable; iconOnly: import("svelte/store").Writable; useFullWidth: import("svelte/store").Writable; useDismissible: import("svelte/store").Writable; useContainer: import("svelte/store").Writable; navigation: import("svelte/store").Writable; secondaryLabelSupported: import("svelte/store").Readable; hasSecondaryLabel: import("svelte/store").Readable; add: (data: { id: string; label: string; disabled: boolean; hasSecondaryLabel: boolean; }) => void; remove: (id: string) => void; addContent: (data: { id: string }) => void; removeContent: (id: string) => void; claimTab: (id: string) => undefined | { panelId: string | undefined }; claimPanel: (id: string, hasOwnId: boolean) => undefined | { id: string; tabId: string | undefined }; update: (id: string) => void; dismiss: () => void; }; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Specify the selected tab index. * Prefer `selectedId` when tabs can be added, removed or reordered: an * index then points at a different tab. Ignored when `selectedId` is set. * @default 0 */ selected?: number; /** * Specify the selected tab by id. Prefer it to `selected`. * When set, takes precedence over `selected` and stays on the same logical * tab as tabs are added or removed. Pair with a stable `id` on each `Tab`. */ selectedId?: string | undefined; /** * Choose whether arrow keys change the selection on focus. * Defaults to `"automatic"`. Set to `"manual"` so arrow keys only move * focus; press Enter or Space to select. * Ignored when `navigation` is set. * @default "automatic" */ activation?: "automatic" | "manual"; /** * Set to `true` to render the tabs as page navigation: a list of links * where the selected link has `aria-current="page"`, instead of a tab list * that switches panels in place. Links keep the browser's Tab order and * arrow keys do not move between them. Give each `Tab` an `href`, set * `selected` or `selectedId` from the current route, label the navigation * with `aria-label`, and put the page in the `content` slot without * `TabContent`. * @default false */ navigation?: boolean; /** * Specify the size of the vertical tabs. * `"xl"` matches the default height. * @default "xl" */ size?: "sm" | "md" | "lg" | "xl"; /** * Specify the orientation of the tab list. * By default, the tabs are a vertical column at the `md` breakpoint and up, * and collapse into a horizontal, scrollable row below it. * Set to `"vertical"` to always render the column, or `"horizontal"` to * always render the row. */ orientation?: "horizontal" | "vertical" | undefined; content?: (this: void) => void; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type TabsVerticalProps = Omit<$RestProps, keyof $Props> & $Props; export default class TabsVertical extends SvelteComponentTyped< TabsVerticalProps, { change: CustomEvent }, { default: Record; content: Record; } > {}