UNPKG

@base-ui-components/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

10 lines (9 loc) 452 B
import * as React from 'react'; export interface UseCompositeItemParameters<Metadata> { metadata?: Metadata; } export declare function useCompositeItem<Metadata>(params?: UseCompositeItemParameters<Metadata>): { getItemProps: (externalProps?: {}) => import("../../utils/types.js").WithBaseUIEvent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>; ref: (node: HTMLElement | null) => void; index: number; };