// packages/components/src/toggle-group-control/toggle-group-control-option/component.tsx
import { forwardRef } from "@wordpress/element";
import { ToggleGroupControlOptionBase } from "../toggle-group-control-option-base/index.js";
import { jsx as _jsx } from "react/jsx-runtime";
function UnforwardedToggleGroupControlOption(props, ref) {
  const {
    label,
    ...restProps
  } = props;
  const optionLabel = restProps["aria-label"] || label;
  return /* @__PURE__ */ _jsx(ToggleGroupControlOptionBase, {
    ...restProps,
    "aria-label": optionLabel,
    ref,
    children: label
  });
}
var ToggleGroupControlOption = forwardRef(UnforwardedToggleGroupControlOption);
var component_default = ToggleGroupControlOption;
export {
  ToggleGroupControlOption,
  component_default as default
};
//# sourceMappingURL=component.js.map
