About
A visitor activity chart with a live status indicator and country breakdown. A Studio Blocks block (arhamkhnz/studio-blocks, MIT) built on base-ui shadcn primitives.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Realtime Visitors to your project and fits it to your theme.
Code
How Realtime Visitors is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client"
import { Chart02, type VisitorCountry } from "@/components/ui/studioblocks-chart-02"
const defaultActivity = [
0, 6, 12, 20, 12, 0, 6, 6, 0, 4, 0, 20, 15, 4, 6, 0, 4, 12, 20, 0, 4, 20, 12, 0, 6, 6, 0, 20, 0, 4,
].map((visitors, index) => ({ minute: index + 1, visitors }));
const defaultCountries: VisitorCountry[] = [
{ code: "US", name: "United States", visitors: 14 },
{ code: "GB", name: "United Kingdom", visitors: 4 },
{ code: "CA", name: "Canada", visitors: 3 },
{ code: "IN", name: "India", visitors: 3 },
];
export default function Example() {
return (
<div className="w-full max-w-lg">
<Chart02 activity={defaultActivity} countries={defaultCountries} />
</div>
);
}
















