@cerberus-design/react
Version:
The Cerberus Design React component library.
19 lines (18 loc) • 2.27 kB
text/typescript
import { RatingGroup, RatingGroupContextProps as ArkRatingGroupContextProps, RatingGroupControlProps as ArkRatingGroupControlProps, RatingGroupHiddenInputProps as ArkRatingGroupHiddenInputProps, RatingGroupItemContextProps as ArkRatingGroupItemContextProps, RatingGroupItemProps as ArkRatingGroupItemProps, RatingGroupLabelProps as ArkRatingGroupLabelProps, RatingGroupRootProps as ArkRatingGroupRootProps } from '@ark-ui/react/rating-group';
import { RatingGroupVariantProps } from 'styled-system/recipes';
import { CerberusPrimitiveProps } from '../../system/index';
import { ForwardRefExoticComponent, RefAttributes, ReactNode } from 'react';
export type RatingRootProps = CerberusPrimitiveProps<ArkRatingGroupRootProps & RatingGroupVariantProps>;
export declare const RatingRoot: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<RatingGroup.RootProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<unknown>>;
export type RatingLabelProps = CerberusPrimitiveProps<ArkRatingGroupLabelProps>;
export declare const RatingLabel: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<RatingGroup.LabelProps & RefAttributes<HTMLLabelElement>>, "ref"> & RefAttributes<unknown>>;
export type RatingGroupControlProps = CerberusPrimitiveProps<ArkRatingGroupControlProps>;
export declare const RatingControl: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<RatingGroup.ControlProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<unknown>>;
export type RatingGroupContextProps = ArkRatingGroupContextProps;
export declare const RatingContext: (props: RatingGroup.ContextProps) => ReactNode;
export type RatingGroupItemProps = CerberusPrimitiveProps<ArkRatingGroupItemProps & RatingGroupVariantProps>;
export declare const RatingItem: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<RatingGroup.ItemProps & RefAttributes<HTMLSpanElement>>, "ref"> & RefAttributes<unknown>>;
export type RatingGroupItemContextProps = ArkRatingGroupItemContextProps;
export declare const RatingItemContext: (props: RatingGroup.ItemContextProps) => ReactNode;
export type RatingGroupHiddenInputProps = ArkRatingGroupHiddenInputProps;
export declare const RatingHiddenInput: ForwardRefExoticComponent<RatingGroup.HiddenInputProps & RefAttributes<HTMLInputElement>>;