Enode — API Reference
    Preparing search index...

    Function StarRating

    • A 0..1 star rating, rendered as count stars (default 5). Each star is split into two clickable halves, so the granularity is 1 / (count * 2) — i.e. 0.1 per half for 5 stars. Clicking a half fills every preceding star plus that star up to the clicked half, and reports the new value via onChange.

      Stars display the EXACT value (partial fills allowed); only clicks snap to the half-step grid. readOnly renders the stars without the click targets. Composes Star.

      Parameters

      • __namedParameters: {
            ariaLabel?: string;
            className?: string;
            count?: number;
            onChange?: (value: number) => void;
            readOnly?: boolean;
            size?: number;
            value: number;
        }

      Returns Element