Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Typescript annotations to NumberInputSkeleton #12877

Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,27 @@
*/

import PropTypes from 'prop-types';
import React from 'react';
import React, { HTMLAttributes } from 'react';
import cx from 'classnames';
import { usePrefix } from '../../internal/usePrefix';

function NumberInputSkeleton({ hideLabel, className, ...rest }) {
export interface NumberInputSkeletonProps
extends HTMLAttributes<HTMLDivElement> {
/**
* Specify an optional className to add to the form item wrapper.
*/
className?: string;

/**
* Specify whether the label should be hidden, or not
*/
hideLabel?: boolean;
}
function NumberInputSkeleton({
hideLabel,
className,
...rest
}: NumberInputSkeletonProps) {
const prefix = usePrefix();
return (
<div className={cx(`${prefix}--form-item`, className)} {...rest}>
Expand Down