BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/ericts-ui/projected-shadow-animation

Projected Shadow Animation

ericts-ui/projected-shadow-animation
FreeComponent

A CSS-powered primitive that layers an element with projected and contact shadows, then gathers them on hover or active state.

Live preview

live · rendered by the registry
Rendered by ericts-ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://ui.ericts.com/r/projected-shadow-animation.json

Source

registry/base/ui/projected-shadow-animation.tsxui.ericts.com/r/projected-shadow-animation.json
1import * as React from "react";
2
3import { cn } from "@/lib/utils";
4
5import "./projected-shadow-animation.css";
6
7type ProjectedShadowTimingValue = number | string;
8type ProjectedShadowLengthValue = number | string;
9type CssVariableStyle = React.CSSProperties & Record<`--${string}`, string>;
10
11export type ProjectedShadowOffset = {
12 /** Horizontal offset. Numeric values are converted to px. */
13 x?: ProjectedShadowLengthValue;
14 /** Vertical offset. Numeric values are converted to px. */
15 y?: ProjectedShadowLengthValue;
16};
17
18export type ProjectedShadowProps = React.ComponentPropsWithoutRef<"span"> & {
19 /** Keep the gathered state active without requiring hover. */
20 active?: boolean;
21 /** Animation duration for release. Numeric values are converted to ms. */
22 duration?: ProjectedShadowTimingValue;
23 /** Animation duration for gather. Numeric values are converted to ms. */
24 activeDuration?: ProjectedShadowTimingValue;
25 /** CSS easing used by the transform and opacity transitions. */
26 ease?: string;
27 /** Blur radius for the far projected shadow. Numeric values are converted to px. */
28 projectedShadowBlur?: ProjectedShadowLengthValue;
29 /** Resting offset for the far projected shadow. */
30 projectedShadowOffset?: ProjectedShadowOffset;
31 /** Optional decorative content for the shadow layers. Defaults to children. */
32 shadow?: React.ReactNode;
33 /** Classes applied to the visible animated child wrapper. */
34 targetClassName?: string;
35 /** Classes applied to the far projected shadow layer. */
36 projectedShadowClassName?: string;
37 /** Classes applied to the close contact shadow layer. */
38 contactShadowClassName?: string;
39 /** Hide the far projected shadow layer. */
40 showProjectedShadow?: boolean;
41 /** Hide the close contact shadow layer. */
42 showContactShadow?: boolean;
43};
44
45export function ProjectedShadow({
46 active,
47 activeDuration,
48 children,
49 className,
50 contactShadowClassName,
51 duration,
52 ease,
53 projectedShadowClassName,
54 projectedShadowBlur,
55 projectedShadowOffset,
56 shadow,
57 showContactShadow = true,
58 showProjectedShadow = true,
59 style,
60 targetClassName,
61 ...props
62}: ProjectedShadowProps) {
63 const shadowContent = shadow ?? children;
64
65 return (
66 <span
67 data-slot="projected-shadow"
68 data-active={active ? "true" : undefined}
69 className={cn(
70 "projected-shadow relative inline-flex items-center justify-center",
71 className,
72 )}
73 style={getProjectedShadowStyle(
74 {
75// … truncated

Files it writes

  • registry/base/ui/projected-shadow-animation.tsx
  • registry/base/ui/projected-shadow-animation.css

Facts

Registry
ericts-ui
Type
registry:ui
Access
Free
Files written
2
Licence
MIT
In the index
at or before 2026-08-08
Last confirmed
yesterday

Go to the source

Docs on ericts-ui ui.ericts.com EricTsai83/ericts-ui on GitHub Raw registry item This item as JSON

More from ericts-ui

All 38 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Adaptive Draweradaptive-drawerericts-uiComponentsFree2 deps
Check Animationcheck-animationericts-uiComponentsFreeno deps · 2 files
Context Cursorcontext-cursorericts-uiComponentsFree1 dep
Copy Buttoncopy-buttonericts-uiComponentsFree2 deps
Expandable Dialogexpandable-modalericts-uiComponentsFree1 dep
Expandable Tabsexpandable-tabsericts-uiComponentsFree1 dep
Expandable Toolbarexpandable-toolbarericts-uiComponentsFree1 dep
Expanding Panelexpanding-panelericts-uiComponentsFree2 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