UNPKG

krypton-ui

Version:

<h1 align="center"> <p align="center"><a href="https://krypton-ui.com"><img src="https://user-images.githubusercontent.com/7073241/224507377-395bffc0-9ff7-4d74-865b-f734394a7e7e.png" alt="Krypton" width="200"></a></p> </h1>

19 lines (18 loc) 515 B
import { ComponentPropsWithoutRef } from "react"; import { Size, Color } from "../../types"; export type Variant = "controlled" | "readOnly" | "disabled"; type RatingType = { value: number; variant?: Variant; size?: Size; color?: Color; onChange: (value: string) => void; }; export type VariantStyledProps = { variant: Variant; }; export type WrapperStyledProps = VariantStyledProps & { color: Color; }; export type RatingProps = ComponentPropsWithoutRef<"div"> & RatingType; export {};