UNPKG

@yamada-ui/rating

Version:

Yamada UI rating component

18 lines (15 loc) 551 B
import { PropGetter } from '@yamada-ui/core'; interface UseRatingItemProps { fractionValue: number; groupValue: number; value: number; } declare const useRatingItem: ({ fractionValue, groupValue, value, }: UseRatingItemProps) => { active: boolean; checked: boolean; filled: boolean; getInputProps: PropGetter<"input", undefined>; getItemProps: PropGetter<"label", undefined>; }; type UseRatingItemReturn = ReturnType<typeof useRatingItem>; export { type UseRatingItemProps, type UseRatingItemReturn, useRatingItem };