carbon-components-svelte/types/Tabs/Tabs.svelte.d.ts
Gregor Wassmann 0eac2e94da Make v10 Tabs work with v11 css classes
In v11 [Tabs](https://carbondesignsystem.com/migrating/guide/design/#tabs-breaking) received some additional modifiers. In this commit we only want to make sure that the Svelte v10 tabs still work using v11 styles. This probably needs additional testing.
2023-01-14 22:23:35 +01:00

41 lines
836 B
TypeScript

/// <reference types="svelte" />
import type { SvelteComponentTyped } from "svelte";
export interface TabsProps
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
/**
* Specify the selected tab index
* @default 0
*/
selected?: number;
/**
* Specify the type of tabs
* @default "default"
*/
type?: "default" | "container";
/**
* Set to `true` for tabs to have an auto-width
* @default false
*/
autoWidth?: boolean;
/**
* Specify the ARIA label for the chevron icon
* @default "Show menu options"
*/
iconDescription?: string;
/**
* Specify the tab trigger href attribute
* @default "#"
*/
triggerHref?: string;
}
export default class Tabs extends SvelteComponentTyped<
TabsProps,
{ change: CustomEvent<any> },
{ default: {}; content: {} }
> {}