const require_rolldown_runtime = require('../rolldown-runtime.cjs');
const require_shared_useForwardExpose = require('../shared/useForwardExpose.cjs');
const require_Primitive_Primitive = require('../Primitive/Primitive.cjs');
const require_RovingFocus_RovingFocusItem = require('../RovingFocus/RovingFocusItem.cjs');
const vue = require_rolldown_runtime.__toESM(require("vue"));

//#region src/Toolbar/ToolbarLink.vue?vue&type=script&setup=true&lang.ts
var ToolbarLink_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.defineComponent)({
	__name: "ToolbarLink",
	props: {
		asChild: {
			type: Boolean,
			required: false
		},
		as: {
			type: null,
			required: false,
			default: "a"
		}
	},
	setup(__props) {
		const props = __props;
		const { forwardRef } = require_shared_useForwardExpose.useForwardExpose();
		return (_ctx, _cache) => {
			return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_RovingFocus_RovingFocusItem.RovingFocusItem_default), {
				"as-child": "",
				focusable: ""
			}, {
				default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(require_Primitive_Primitive.Primitive), (0, vue.mergeProps)(props, {
					ref: (0, vue.unref)(forwardRef),
					onKeydown: _cache[0] || (_cache[0] = (event) => {
						if (event.key === " ") event.currentTarget?.click();
					})
				}), {
					default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
					_: 3
				}, 16)]),
				_: 3
			});
		};
	}
});

//#endregion
//#region src/Toolbar/ToolbarLink.vue
var ToolbarLink_default = ToolbarLink_vue_vue_type_script_setup_true_lang_default;

//#endregion
Object.defineProperty(exports, 'ToolbarLink_default', {
  enumerable: true,
  get: function () {
    return ToolbarLink_default;
  }
});
//# sourceMappingURL=ToolbarLink.cjs.map