BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/atroui/reveal

Reveal

atroui/reveal
FreeBlock

IntersectionObserver reveal using .atro-reveal CSS.

Install it

npx shadcn@latest add https://atroui.com/r/reveal.json

Source

registry/default/blocks/reveal.tsxatroui.com/r/reveal.json
1"use client"
2
3import * as React from "react"
4
5import { cn } from "@/lib/utils"
6
7type RevealProps = {
8 as?: React.ElementType
9 delay?: number
10 once?: boolean
11 id?: string
12 className?: string
13 children: React.ReactNode
14}
15
16/**
17 * IntersectionObserver reveal. Pair with `.atro-reveal` / `.atro-reveal-in` CSS.
18 */
19export function Reveal({
20 as,
21 delay = 0,
22 once = true,
23 id,
24 className,
25 children,
26}: RevealProps) {
27 const Tag = (as ?? "div") as React.ElementType
28 const ref = React.useRef<HTMLElement | null>(null)
29 const [inView, setInView] = React.useState(false)
30
31 React.useEffect(() => {
32 const node = ref.current
33 if (!node) return
34 if (typeof IntersectionObserver === "undefined") {
35 setInView(true)
36 return
37 }
38 const io = new IntersectionObserver(
39 ([entry]) => {
40 if (entry?.isIntersecting) {
41 setInView(true)
42 if (once) io.disconnect()
43 } else if (!once) {
44 setInView(false)
45 }
46 },
47 { threshold: 0.12, rootMargin: "0px 0px -40px 0px" }
48 )
49 io.observe(node)
50 return () => io.disconnect()
51 }, [once])
52
53 return (
54 <Tag
55 id={id}
56 ref={ref as React.Ref<HTMLElement>}
57 className={cn("atro-reveal", inView && "atro-reveal-in", className)}
58 style={delay ? { animationDelay: `${delay}ms` } : undefined}
59 >
60 {children}
61 </Tag>
62 )
63}

What it pulls in

Other registry items

  • @atroui/utils

Files it writes

  • registry/default/blocks/reveal.tsx

Facts

Registry
atroui
Type
registry:block
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-13
Last confirmed
yesterday

Go to the source

atroui.com atroui/atroui on GitHub Raw registry item This item as JSON

More from atroui

All 82 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Analytics Provideranalytics-provideratrouiBlocksFree1 dep
AR Portfolioar-portfolioatrouiBlocksFree1 dep
Before / Afterbefore-after-slideratrouiBlocksFreeno deps
Calendly Embedcalendly-embedatrouiBlocksFree1 dep
ChangelogchangelogatrouiBlocksFreeno deps
Command Menucommand-menuatrouiBlocksFree4 deps
Contact Formcontact-formatrouiBlocksFree2 deps
Contextual CTAcontextual-ctaatrouiBlocksFree2 deps

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