Skip to content

Commit fad54da

Browse files
authored
fix: extend SkeletonPlaceholder props with HTMLAttributes (#20324)
1 parent 0577443 commit fad54da

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/react/src/components/SkeletonPlaceholder/SkeletonPlaceholder.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
/**
2-
* Copyright IBM Corp. 2016, 2023
2+
* Copyright IBM Corp. 2016, 2025
33
*
44
* This source code is licensed under the Apache-2.0 license found in the
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
import React from 'react';
8+
import React, { type HTMLAttributes } from 'react';
99
import PropTypes from 'prop-types';
1010
import classNames from 'classnames';
1111
import { usePrefix } from '../../internal/usePrefix';
1212

13-
export interface SkeletonPlaceholderProps {
13+
export interface SkeletonPlaceholderProps
14+
extends HTMLAttributes<HTMLDivElement> {
1415
/**
1516
* Add a custom class to the component to set the height and width
1617
*/
@@ -34,8 +35,7 @@ const SkeletonPlaceholder = ({
3435

3536
SkeletonPlaceholder.propTypes = {
3637
/**
37-
* Add a custom class to the component
38-
* to set the height and width
38+
* Add a custom class to the component to set the height and width
3939
*/
4040
className: PropTypes.string,
4141
};

0 commit comments

Comments
 (0)