diff --git a/src/components/rating/Rating.tsx b/src/components/rating/Rating.tsx index 85d602b8a..8483afc93 100644 --- a/src/components/rating/Rating.tsx +++ b/src/components/rating/Rating.tsx @@ -1,13 +1,13 @@ -import { FC } from 'react'; +import { FC, PropsWithChildren } from 'react'; import classNames from 'classnames'; import { RatingAdvanced } from './RatingAdvanced'; import { RatingContext, Size } from './RatingContext'; import { RatingStar } from './RatingStar'; -export type RatingComponentProps = { +export type RatingComponentProps = PropsWithChildren<{ className?: string; size?: Size; -}; +}>; const RatingComponent: FC = ({ children, className, size = 'sm' }) => { return (