import type { ReactElement, HTMLAttributes, Ref } from "react"; import type SlTabElement from "@shoelace-style/shoelace/dist/components/tab/tab.js"; import { SlCloseEvent } from "../events"; export type { SlTabElement }; export type SlTabCloseEvent = SlCloseEvent; export interface SlTabProps extends HTMLAttributes { ref?: Ref; /** * The name of the tab panel this tab is associated with. The panel must be located in the same tab group. */ panel?: string; /** * Draws the tab in an active state. */ active?: boolean; /** * Makes the tab closable and shows a close button. */ closable?: boolean; /** * Disables the tab and prevents selection. */ disabled?: boolean; /** * Emitted when the tab is closable and the close button is activated. */ onSlClose?: (event: SlTabCloseEvent) => void; /** * Emitted when the tab is closable and the close button is activated. */ onSlCloseCapture?: (event: SlTabCloseEvent) => void; } /** * Tabs are used inside [tab groups](/components/tab-group) to represent and activate [tab panels](/components/tab-panel). */ export default function SlTab( props: SlTabProps, ): ReactElement;