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.

27 lines (26 loc) 813 B
import * as React from 'react'; import { BaseUIComponentProps } from '../../utils/types.js'; /** * A button that opens the select menu. * Renders a `<div>` element. * * Documentation: [Base UI Select](https://base-ui.com/react/components/select) */ declare const SelectTrigger: React.ForwardRefExoticComponent<SelectTrigger.Props & React.RefAttributes<HTMLElement>>; declare namespace SelectTrigger { interface Props extends BaseUIComponentProps<'div', State> { children?: React.ReactNode; /** * Whether the component should ignore user interaction. * @default false */ disabled?: boolean; } interface State { /** * Whether the select menu is currently open. */ open: boolean; } } export { SelectTrigger };