import * as React from 'react'; import { Pressable } from 'react-native'; import type { ComboboxHandle } from '../store/ComboboxHandle'; import type { ZestUIComponentProps } from '../../types'; /** * A button that opens the list, and the element it is positioned against. * Renders a ``. * * Use it instead of `Combobox.Input` when the closed state should read as a * button rather than a text field — the input then lives *inside* the popup and * filters from there, which is the usual shape on a phone: * * ```tsx * * * * * * * * * * * * * * ``` * * The popup anchors to the trigger whenever there is one — the input in that * shape is inside the popup, and anchoring to it would position the popup * against itself. Without a trigger the input is the anchor, which is the plain * combobox. Pass a `handle` to render a trigger outside of its `Combobox.Root`. */ export declare function ComboboxTrigger(componentProps: ComboboxTrigger.Props): React.ReactElement>; export interface ComboboxTriggerState { /** * Whether the component should ignore user interaction. */ disabled: boolean; /** * Whether the list is currently open. */ open: boolean; /** * Whether the trigger is currently pressed. */ pressed: boolean; } export interface ComboboxTriggerProps extends ZestUIComponentProps { /** * Whether the component should ignore user interaction. A disabled root * disables its triggers too. * @default false */ disabled?: boolean | undefined; /** * A handle shared with a `Combobox.Root`, which is what lets this trigger live * outside of it. Create one with `Combobox.createHandle()`. * * The trigger's `nativeID` is the id a handle's `open(triggerId)` resolves. */ handle?: ComboboxHandle | undefined; /** * A payload handed to the root's children when they are a function. */ payload?: Payload | undefined; } export declare namespace ComboboxTrigger { type State = ComboboxTriggerState; type Props = ComboboxTriggerProps; } //# sourceMappingURL=ComboboxTrigger.d.ts.map