UNPKG

@cerberus-design/react

Version:

The Cerberus Design React component library.

47 lines (46 loc) 1.07 kB
import { ElementType } from 'react'; /** * This module contains the parts of the Rating component. * @module 'rating/parts' */ interface RatingPartsValue { /** * The container of the rating. */ Root: ElementType; /** * The label of the rating. */ Label: ElementType; /** * The visual representation of the rating. */ Control: ElementType; /** * The context of the rating. */ Context: ElementType; /** * The item to display for the rating. */ Item: ElementType; /** * The context provider for the rating items. */ ItemContext: ElementType; /** * The native input of the rating. */ HiddenInput: ElementType; } /** * An Object containing the parts of the Rating component. For users that * prefer Object component syntax. * * @remarks * * When using object component syntax, you import the RatingParts object and * the entire family of components vs. only what you use. */ export declare const RatingParts: RatingPartsValue; export {};