import React from "react"; import { PlusTabGroup as PlusTabGroupElement } from "../dist/components/tab-group/index.js"; export type { PlusTabGroupElement }; export interface PlusTabGroupProps extends Pick< React.AllHTMLAttributes, | "children" | "dir" | "hidden" | "id" | "lang" | "slot" | "style" | "title" | "translate" | "onClick" | "onFocus" | "onBlur" > { /** Disables all tabs */ disabled?: boolean; /** Allows individual tabs to be dismissed (closed). */ dismissible?: boolean; /** Enables animated sliding indicator for active tab */ animated?: boolean; /** Sets the size of the tabs - sm: Small size - md: Medium size - lg: Large size */ size?: PlusTabGroupElement["size"]; /** Sets the orientation of the tabs - horizontal: Tabs arranged horizontally - vertical: Tabs arranged vertically */ orientation?: PlusTabGroupElement["orientation"]; /** Currently active tab value */ value?: PlusTabGroupElement["value"]; /** A space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements via the class selectors or functions like the method `Document.getElementsByClassName()`. */ className?: string; /** Contains a space-separated list of the part names of the element that should be exposed on the host element. */ exportparts?: string; /** Used for labels to link them with their inputs (using input id). */ htmlFor?: string; /** Used to help React identify which items have changed, are added, or are removed within a list. */ key?: number | string; /** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */ part?: string; /** A mutable ref object whose `.current` property is initialized to the passed argument (`initialValue`). The returned object will persist for the full lifetime of the component. */ ref?: any; /** Allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the `Tab` key, hence the name) and determine their relative ordering for sequential focus navigation. */ tabIndex?: number; /** Emitted when a tab is selected with the tab's value */ onPlusTabsChange?: (event: CustomEvent) => void; } /** * Tab group component that manages a set of tabs and panels. * --- * * * ### **Events:** * - **plus-tabs-change** - Emitted when a tab is selected with the tab's value * * ### **Slots:** * - **tablist** - Slot for tabs * - **panels** - Slot for tab panels * * ### **CSS Properties:** * - **--tabs-gap** - Controls the gap between tabs _(default: undefined)_ * - **--tabs-indicator-color** - Controls the color of the active tab indicator _(default: undefined)_ * - **--tabs-indicator-height** - Controls the height of the animated indicator _(default: undefined)_ * * ### **CSS Parts:** * - **group** - The component's base wrapper * - **tablist** - The tabs container * - **panels** - The tab panels container * - **indicator** - The animated indicator element (when animated=true) */ export const PlusTabGroup: React.ForwardRefExoticComponent;