"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ListboxInputSlot = void 0;
const react_1 = __importDefault(require("react"));
const Slot_1 = require("../../slot/Slot");
const Listbox_context_1 = require("../root/Listbox.context");
const ListboxInputSlot = ({ children }) => {
    const { activeId } = (0, Listbox_context_1.useListboxContext)();
    return (react_1.default.createElement(Slot_1.Slot, { "aria-activedescendant": activeId, 
        // @ts-expect-error - You are meant to use an <input>, but Slot doesn't know that.
        autoComplete: "off", role: "combobox" }, children));
};
exports.ListboxInputSlot = ListboxInputSlot;
//# sourceMappingURL=ListboxInputSlot.js.map