About
A gradebook with weighted assignments, editable scores, live letter grades, class average, on-track and score-completion lanes, a letter distribution, column averages, a below-target filter, sorting, a drop-lowest toggle and a per-student breakdown with class comparison.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Gradebook to your project and fits it to your theme.
Code
How Gradebook is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
/**
* PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
*/
import {
Gradebook,
type GradeAssignment,
type GradeScores,
type GradeStudent,
} from "@/components/ui/gradebook";
const STUDENTS: GradeStudent[] = [
{ id: "s1", name: "Amara Okafor", group: "Section A" },
{ id: "s2", name: "Theo Nakamura", group: "Section A" },
{ id: "s3", name: "Lena Fischer", group: "Section B" },
{ id: "s4", name: "Jonas Weber", group: "Section B" },
{ id: "s5", name: "Priya Raman", group: "Section A" },
{ id: "s6", name: "Sam Rivera", group: "Section B" },
];
const ASSIGNMENTS: GradeAssignment[] = [
{ id: "a1", name: "Reading log", points: 50, weight: 15 },
{ id: "a2", name: "Midterm", points: 100, weight: 30 },
{ id: "a3", name: "Lab report", points: 80, weight: 25 },
{ id: "a4", name: "Final project", points: 120, weight: 30 },
];
const SCORES: GradeScores = {
s1: { a1: 46, a2: 91, a3: 74, a4: 108 },
s2: { a1: 41, a2: 78, a3: 66, a4: 94 },
s3: { a1: 50, a2: 96, a3: 77, a4: 112 },
s4: { a1: 33, a2: 62, a3: 55, a4: 78 },
s5: { a1: 48, a2: 88, a3: 72, a4: 110 },
s6: { a1: 38, a2: 71, a3: null, a4: 86 },
};
export default function GradebookDemo() {
return (
<main className="flex min-h-screen w-full items-start justify-center bg-gradient-to-b from-muted/40 via-background to-background px-4 py-8 sm:px-6">
<Gradebook
students={STUDENTS}
assignments={ASSIGNMENTS}
initialScores={SCORES}
title="Course gradebook"
classLabel="Section A and B"
target={70}
/>
</main>
);
}








