About
A classroom attendance register with week tabs, per-student status radio groups, inline absence notes, filterable rosters, a live attendance ring, day flags, bulk present marking, undo, save and reset.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Attendance Board to your project and fits it to your theme.
Code
How Attendance Board 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 {
AttendanceBoard,
type AttendanceMap,
type AttendanceStudent,
type AttendanceDay,
} from "@/components/ui/attendance-board";
const STUDENTS: AttendanceStudent[] = [
{ id: "s1", name: "Amara Okafor", group: "House A" },
{ id: "s2", name: "Ben Silva", group: "House B" },
{ id: "s3", name: "Chloe Nguyen", group: "House A" },
{ id: "s4", name: "Diego Ramos", group: "House C" },
{ id: "s5", name: "Eli Thompson", group: "House B" },
{ id: "s6", name: "Farah Haddad", group: "House A" },
{ id: "s7", name: "Grace Kim", group: "House C" },
{ id: "s8", name: "Hugo Martin", group: "House B" },
{ id: "s9", name: "Iris Patel", group: "House A" },
{ id: "s10", name: "Jonah Reed", group: "House C" },
{ id: "s11", name: "Lea Moreau", group: "House B" },
{ id: "s12", name: "Noah Fischer", group: "House C" },
];
const DAYS: AttendanceDay[] = [
{ id: "mon", label: "Mon", date: "12 May" },
{ id: "tue", label: "Tue", date: "13 May" },
{ id: "wed", label: "Wed", date: "14 May" },
{ id: "thu", label: "Thu", date: "15 May" },
{ id: "fri", label: "Fri", date: "16 May" },
];
const INITIAL: AttendanceMap = {
mon: {
s1: { status: "present" },
s2: { status: "present" },
s3: { status: "late", note: "Bus delay" },
s4: { status: "present" },
s5: { status: "present" },
s6: { status: "excused", note: "Dental appointment" },
s7: { status: "present" },
s8: { status: "present" },
s9: { status: "present" },
s10: { status: "absent", note: "No contact yet" },
s11: { status: "present" },
s12: { status: "present" },
},
tue: {
s1: { status: "present" },
s2: { status: "present" },
s3: { status: "present" },
s4: { status: "late", note: "Sports practice overran" },
s5: { status: "present" },
s6: { status: "present" },
s7: { status: "present" },
s8: { status: "present" },
s9: { status: "present" },
s10: { status: "present" },
s11: { status: "present" },
s12: { status: "present" },
},
wed: {
s1: { status: "present" },
s2: { status: "present" },
s3: { status: "present" },
s5: { status: "present" },
s6: { status: "present" },
s7: { status: "present" },
s8: { status: "absent", note: "Family trip, unconfirmed" },
s9: { status: "present" },
s10: { status: "present" },
s11: { status: "present" },
s12: { status: "present" },
},
thu: {
s1: { status: "present" },
s2: { status: "present" },
s3: { status: "present" },
s4: { status: "present" },
s5: { status: "present" },
s6: { status: "present" },
s7: { status: "present" },
s8: { status: "present" },
s9: { status: "excused", note: "Music exam" },
s10: { status: "present" },
s11: { status: "present" },
s12: { status: "present" },
},
fri: {
s1: { status: "present" },
s2: { status: "present" },
s3: { status: "present" },
s4: { status: "present" },
s5: { status: "present" },
s6: { status: "present" },
s7: { status: "present" },
s8: { status: "present" },
s9: { status: "present" },
s10: { status: "present" },
s11: { status: "late", note: "Late bus" },
s12: { status: "present" },
},
};
export default function AttendanceBoardDemo() {
return (
<main className="flex min-h-screen w-full items-center justify-center bg-gradient-to-b from-muted/40 via-background to-background px-4 py-8 sm:px-6">
<AttendanceBoard
students={STUDENTS}
days={DAYS}
initialAttendance={INITIAL}
classLabel="Grade 7 · Section B"
teacher="Ms. R. Alvarez"
title="Week 20 attendance register"
description="Mark each student, add a reason when someone is late or away, then save the day."
/>
</main>
);
}








