BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/abui/calendar-year
This component no longer exists. It was in abui’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-06 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.

Calendar Year

abui/calendar-year
RemovedBlock

A calendar year component.

Install it

npx shadcn@latest add https://abui.io/r/calendar-year.json

Source

registry/abui/ui/calendar-year.tsxabui.io/r/calendar-year.json · first 6 KB
1"use client"
2
3import * as React from "react"
4import { Slot } from "@radix-ui/react-slot"
5import { cva, type VariantProps } from "class-variance-authority"
6import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip"
7import { cn } from "@/lib/utils"
8import dayjs from "dayjs"
9import timezone from "dayjs/plugin/timezone"
10import utc from "dayjs/plugin/utc"
11dayjs.extend(timezone)
12dayjs.extend(utc)
13// ============================================================================
14// Types
15// ============================================================================
16
17/**
18 * State of a calendar day
19 */
20export type DayState = "blocked" | "disabled"
21
22/**
23 * Day data structure
24 */
25export interface CalendarDay {
26 date: string // YYYY-MM-DD format
27 state?: DayState
28 disabled?: boolean
29 tooltip?: string
30}
31
32/**
33 * Month structure with rows of days
34 */
35export interface CalendarMonth {
36 name: string
37 monthIndex: number
38 weekdayLabels: string[]
39 rows: (CalendarDay | null)[][]
40}
41
42// ============================================================================
43// Variants
44// ============================================================================
45
46const calendarYearDayVariants = cva(
47 "cursor-pointer inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-full text-sm font-semibold transition-all disabled:pointer-events-none disabled:opacity-50 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive relative h-9 w-9 p-0",
48 {
49 variants: {
50 variant: {
51 default: "bg-foreground text-background dark:text-background hover:bg-foreground/90 border border-foreground",
52 "default-success":
53 "bg-green-500 text-background hover:bg-green-600 hover:border-green-600 dark:hover:bg-green-400 dark:hover:border-green-400 border border-green-500",
54 accent: "bg-accent text-background dark:text-background hover:bg-accent/90 border border-accent",
55 destructive:
56 "bg-destructive hover:!bg-destructive text-background focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 border border-destructive",
57 outline:
58 "border bg-background shadow-xs hover:bg-muted hover:text-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
59// … truncated

What it pulls in

npm packages

  • dayjs

Other registry items

  • button
  • tooltip

Files it writes

  • registry/abui/ui/calendar-year.tsx

Facts

Registry
abui
Type
registry:block
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-02
Last confirmed
13 days ago

Go to the source

abui.io antoniobrandao/abui on GitHub Raw registry item This item as JSON

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex