import React from "react"; import { PlusListBoxItem as PlusListBoxItemElement } from "../dist/components/list-box-item/index.js"; export type { PlusListBoxItemElement }; export interface PlusListBoxItemProps extends Pick< React.AllHTMLAttributes, | "children" | "dir" | "hidden" | "id" | "lang" | "slot" | "style" | "title" | "translate" | "onClick" | "onFocus" | "onBlur" > { /** Disables the item, making it non-interactive. */ disabled?: boolean; /** Indicates whether the item is currently selected. */ selected?: boolean; /** Sets the size of the list box item - sm: Small size - md: Medium size - lg: Large size */ size?: PlusListBoxItemElement["size"]; /** Sets the text content of the list box item If provided, this will be used as the item's content when no slot content is present */ text?: PlusListBoxItemElement["text"]; /** 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 the list box item is clicked */ onClick?: (event: CustomEvent) => void; } /** * * --- * * * ### **Events:** * - **click** - Emitted when the list box item is clicked * * ### **Slots:** * - _default_ - The default slot for the list box item content * * ### **CSS Properties:** * - **--i-bg-default** - Controls the default background color _(default: undefined)_ * - **--i-bg-hovered** - Controls the background color when hovered _(default: undefined)_ * - **--i-bg-pressed** - Controls the background color when pressed _(default: undefined)_ * - **--i-text-color** - Controls the text color _(default: undefined)_ * - **--i-selected-bg** - Controls the background color when selected _(default: undefined)_ * * ### **CSS Parts:** * - **base** - The component's base wrapper */ export const PlusListBoxItem: React.ForwardRefExoticComponent;