/** * Copyright IBM Corp. 2021, 2023 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React, { type KeyboardEventHandler, type MouseEventHandler } from 'react'; import PropTypes from 'prop-types'; type ExcludedAttributes = 'aria-labelledby' | 'aria-checked' | 'type' | 'role' | 'id' | 'size' | 'onClick' | 'onToggle'; export interface ToggleProps extends Omit, ExcludedAttributes> { /** * Specify another element's id to be used as the label for this toggle */ 'aria-labelledby'?: string; /** * Provide an id that unique represents the underlying `