ScoreSummary
An entry’s score, star mean, red and black stickers and distribution.
import { ScoreSummary } from '@iffday/web/src/components';Example
An entry’s ratings in full: the score out of 10 with the number of people and whether the sample is large enough, the star mean, the red and black sticker counts for Recommended and Not recommended, then the star distribution and when it was calculated.
Overall rating8.12/10268 people, individual responses
4.06 /5 (214 people) Recommended 96 Not recommended 11
import { ScoreSummary } from '@iffday/web/src/components';
import { score } from '../../../samples';
export default function Example() {
return (
<div style={{ width: 'min(100%, 360px)' }}>
<ScoreSummary score={score} />
</div>
);
}Usage
sampleStatusisready,insufficientornone, shown as individual responses, Not enough ratings and No ratings yet.- The calculation time is always shown in Seoul time, a leftover from the BIFF-only days.
Props
ScoreSummary
apps/web/src/components.tsx:176| Prop | Type | Default |
|---|---|---|
score* | Score |
Not used directly in apps/web yet.