Skip to content

Commit

Permalink
update width property type
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabricevladimir committed Apr 16, 2024
1 parent 72b4abe commit 9d87417
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import classNames from 'classnames';
import { forwardRef, type ComponentPropsWithoutRef } from 'react';
import { forwardRef, type CSSProperties, type ComponentPropsWithoutRef } from 'react';
import { type ResponsiveAttribute, type ResponsiveAttributeClassMap } from '../../../types';
import { responsiveUtils } from '../../../utils';

Expand All @@ -26,7 +26,7 @@ export interface IStateSkeletonBarProps extends ComponentPropsWithoutRef<'span'>
* width="100px" // Sets width to 100 pixels.
* width="10%" // Sets width to 10% of its parent container.
*/
width?: string | number;
width?: CSSProperties['width'];
}

const responsiveSizeClasses: ResponsiveAttributeClassMap<StateSkeletonBarSize> = {
Expand Down

0 comments on commit 9d87417

Please sign in to comment.