39 lines
2 KiB
TypeScript
Executable file
39 lines
2 KiB
TypeScript
Executable file
import Component from '../../components/tab-group/tab-group.component.js';
|
|
import { type EventName } from '@lit/react';
|
|
import type { SlTabShowEvent } from '../../events/events.js';
|
|
import type { SlTabHideEvent } from '../../events/events.js';
|
|
export type { SlTabShowEvent } from '../../events/events.js';
|
|
export type { SlTabHideEvent } from '../../events/events.js';
|
|
/**
|
|
* @summary Tab groups organize content into a container that shows one section at a time.
|
|
* @documentation https://shoelace.style/components/tab-group
|
|
* @status stable
|
|
* @since 2.0
|
|
*
|
|
* @dependency sl-icon-button
|
|
*
|
|
* @slot - Used for grouping tab panels in the tab group. Must be `<sl-tab-panel>` elements.
|
|
* @slot nav - Used for grouping tabs in the tab group. Must be `<sl-tab>` elements.
|
|
*
|
|
* @event {{ name: String }} sl-tab-show - Emitted when a tab is shown.
|
|
* @event {{ name: String }} sl-tab-hide - Emitted when a tab is hidden.
|
|
*
|
|
* @csspart base - The component's base wrapper.
|
|
* @csspart nav - The tab group's navigation container where tabs are slotted in.
|
|
* @csspart tabs - The container that wraps the tabs.
|
|
* @csspart active-tab-indicator - The line that highlights the currently selected tab.
|
|
* @csspart body - The tab group's body where tab panels are slotted in.
|
|
* @csspart scroll-button - The previous/next scroll buttons that show when tabs are scrollable, an `<sl-icon-button>`.
|
|
* @csspart scroll-button--start - The starting scroll button.
|
|
* @csspart scroll-button--end - The ending scroll button.
|
|
* @csspart scroll-button__base - The scroll button's exported `base` part.
|
|
*
|
|
* @cssproperty --indicator-color - The color of the active tab indicator.
|
|
* @cssproperty --track-color - The color of the indicator's track (the line that separates tabs from panels).
|
|
* @cssproperty --track-width - The width of the indicator's track (the line that separates tabs from panels).
|
|
*/
|
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
|
onSlTabShow: EventName<SlTabShowEvent>;
|
|
onSlTabHide: EventName<SlTabHideEvent>;
|
|
}>;
|
|
export default reactWrapper;
|