@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.
21 lines (20 loc) • 702 B
TypeScript
import * as React from 'react';
import type { GenericHTMLProps } from '../../utils/types.js';
export declare function useSelectTrigger(parameters: useSelectTrigger.Parameters): useSelectTrigger.ReturnValue;
export declare namespace useSelectTrigger {
interface Parameters {
/**
* Whether the component should ignore user interaction.
* @default false
*/
disabled?: boolean;
/**
* The ref to the root element.
*/
rootRef?: React.Ref<HTMLElement>;
}
interface ReturnValue {
getTriggerProps: (externalProps?: GenericHTMLProps) => GenericHTMLProps;
rootRef: React.RefCallback<Element> | null;
}
}