UNPKG

@papernote/ui

Version:

A modern React component library with a paper notebook aesthetic - minimal, professional, and expressive

26 lines 907 B
export interface RatingProps { /** Current rating value */ value: number; /** Callback when rating changes */ onChange?: (value: number) => void; /** Maximum rating (number of stars) */ max?: number; /** Size variant */ size?: 'sm' | 'md' | 'lg'; /** Read-only mode */ readOnly?: boolean; /** Allow half-star ratings */ allowHalf?: boolean; /** Color variant */ color?: 'primary' | 'warning' | 'error'; /** Show label with rating value */ showLabel?: boolean; /** Custom label text */ label?: string; /** Disabled state */ disabled?: boolean; /** Class name for container */ className?: string; } export default function Rating({ value, onChange, max, size, readOnly, allowHalf, color, showLabel, label, disabled, className, }: RatingProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=Rating.d.ts.map