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/ToolbarButton.vue?vue&type=script&setup=true&lang.ts
var ToolbarButton_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.defineComponent)({
	__name: "ToolbarButton",
	props: {
		disabled: {
			type: Boolean,
			required: false
		},
		asChild: {
			type: Boolean,
			required: false
		},
		as: {
			type: null,
			required: false,
			default: "button"
		}
	},
	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: !_ctx.disabled
			}, {
				default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(require_Primitive_Primitive.Primitive), (0, vue.mergeProps)({
					ref: (0, vue.unref)(forwardRef),
					type: _ctx.as === "button" ? "button" : void 0
				}, props), {
					default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
					_: 3
				}, 16, ["type"])]),
				_: 3
			}, 8, ["focusable"]);
		};
	}
});

//#endregion
//#region src/Toolbar/ToolbarButton.vue
var ToolbarButton_default = ToolbarButton_vue_vue_type_script_setup_true_lang_default;

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