@synergy-design-system/react
Version:
React wrappers for the Synergy Design System
24 lines (23 loc) • 1.03 kB
TypeScript
import Component from '@synergy-design-system/components/components/tab/tab.component.js';
import { type EventName } from '@lit/react';
import type { SynCloseEvent } from '@synergy-design-system/components';
/**
* @summary Tabs are used inside [tab groups](/components/tab-group) to represent and activate [tab panels](/components/tab-panel).
* @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-tab--docs
* @status stable
* @since 2.0
*
* @dependency syn-icon-button
*
* @slot - The tab's label.
*
* @event syn-close - Emitted when the tab is closable and the close button is activated.
*
* @csspart base - The component's base wrapper.
* @csspart close-button - The close button, an `<syn-icon-button>`.
* @csspart close-button__base - The close button's exported `base` part.
*/
export declare const SynTab: import("@lit/react").ReactWebComponent<Component, {
onSynClose: EventName<SynCloseEvent>;
}>;
export type { SynCloseEvent } from '@synergy-design-system/components';