@carbon/react
Version:
React components for the Carbon Design System
45 lines (44 loc) • 1.52 kB
TypeScript
/**
* Copyright IBM Corp. 2016, 2025
*
* 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 PropTypes from 'prop-types';
export interface ToggleSmallSkeletonProps {
['aria-label']: string;
/**
* Specify an optional className to add to the form item wrapper.
*/
className?: string;
/**
* Provide an id that unique represents the underlying `<input>`
*/
id?: string;
/**
* Provide the text that will be read by a screen reader when visiting this
* control. `aria-label` is always required but will be `null` if `labelText`
* is also provided.
*/
labelText?: string;
}
export declare const ToggleSmallSkeleton: {
({ id, labelText, className, ...rest }: ToggleSmallSkeletonProps): import("react/jsx-runtime").JSX.Element;
propTypes: {
"aria-label": PropTypes.Validator<string>;
/**
* Specify an optional className to add to the form item wrapper.
*/
className: PropTypes.Requireable<string>;
/**
* Provide an id that unique represents the underlying `<input>`
*/
id: PropTypes.Requireable<string>;
/**
* Provide the text that will be read by a screen reader when visiting this
* control. `aria-label` is always required but will be `null` if `labelText`
* is also provided.
*/
labelText: PropTypes.Requireable<string>;
};
};