UNPKG

@hashicorp/design-system-components

Version:
34 lines (33 loc) 1.06 kB
/** * Copyright IBM Corp. 2021, 2025 * SPDX-License-Identifier: MPL-2.0 */ import Component from '@glimmer/component'; import type { HdsTabsTabSignature } from './tab'; import type { HdsTabsPanelIds, HdsTabsTabIds } from './types'; export interface HdsTabsPanelSignature { Args: { tabIds?: HdsTabsTabIds; panelIds?: HdsTabsPanelIds; selectedTabIndex?: HdsTabsTabSignature['Args']['selectedTabIndex']; didInsertNode?: (element: HTMLElement, elementId: string) => void; willDestroyNode?: (element: HTMLElement) => void; }; Blocks: { default: [ { isVisible?: boolean; } ]; }; Element: HTMLElement; } export default class HdsTabsPanel extends Component<HdsTabsPanelSignature> { private _panelId; private _elementId?; get nodeIndex(): number | undefined; get isVisible(): boolean; get coupledTabId(): string | undefined; didInsertNode: (element: HTMLElement) => void; willDestroyNode: (element: HTMLElement) => void; }