/** * `useCompositeItem` — thin wrapper around `useCompositeListItem` that also * reads the composite root context so items can contribute `tabIndex`, * `onFocus` and `onMouseMove` that keep `highlightedIndex` in sync. * * Mirrors `packages/react/src/internals/composite/item/useCompositeItem.ts` * in Base UI React. */ import type { Accessor } from "solid-js"; import type { PropsLike } from "../merge-props-n.js"; import { type UseCompositeListItemParameters } from "./composite-list.js"; export interface UseCompositeItemParameters extends Pick, "metadata" | "label"> { } export interface UseCompositeItemReturn { /** Props to pass to the item element through `renderElement`. */ props: PropsLike; /** Ref callback for the item element (composable via Solid 2 array ref form). */ ref: (el: HTMLElement | null) => void; /** Accessor for the item's live DOM-ordered index. */ index: Accessor; } export declare function useCompositeItem(params?: UseCompositeItemParameters): UseCompositeItemReturn; //# sourceMappingURL=composite-item.d.ts.map