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/squeeze-animation

Squeeze Animation

ericts-ui/squeeze-animation
FreeComponent

A squeeze animation primitive plus a ready-made SVG card icon.

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/squeeze-animation.json

Source

registry/base/ui/squeeze-animation.tsxui.ericts.com/r/squeeze-animation.json
1import * as React from "react";
2
3import { cn } from "@/lib/utils";
4
5import "./squeeze-animation.css";
6
7type SqueezeAnimationValue = number | string;
8
9export type SqueezeOptions = {
10 /** Horizontal rebound distance. Numeric values are converted to px. Set to 0 to disable. */
11 shakeX?: SqueezeAnimationValue;
12 /** Vertical rebound distance. Numeric values are converted to px. Set to 0 to disable. */
13 shakeY?: SqueezeAnimationValue;
14 /** Animation duration. Numeric values are converted to ms. */
15 duration?: SqueezeAnimationValue;
16};
17
18export type SqueezeProps = React.ComponentPropsWithoutRef<"span"> &
19 SqueezeOptions & {
20 /** Classes applied to the animated child wrapper. */
21 targetClassName?: string;
22 };
23
24export function Squeeze({
25 className,
26 children,
27 duration,
28 shakeX,
29 shakeY,
30 style,
31 targetClassName,
32 ...props
33}: SqueezeProps) {
34 return (
35 <span
36 data-slot="squeeze"
37 className={cn("squeeze-animation inline-flex", className)}
38 style={getSqueezeAnimationStyle({ duration, shakeX, shakeY }, style)}
39 {...props}
40 >
41 <span
42 data-slot="squeeze-target"
43 className={cn("squeeze-animation-target inline-flex", targetClassName)}
44 >
45 {children}
46 </span>
47 </span>
48 );
49}
50
51export type SqueezeAnimationProps = React.ComponentPropsWithoutRef<"div"> &
52 SqueezeOptions & {
53 /** Classes applied to the animated SVG group. */
54 targetClassName?: string;
55 };
56
57export function SqueezeAnimation({
58 className,
59 duration,
60 shakeX,
61 shakeY,
62 style,
63 targetClassName,
64 ...props
65}: SqueezeAnimationProps) {
66 return (
67 <div
68 data-slot="squeeze-animation"
69 className={cn(
70 "squeeze-animation flex flex-col items-center text-foreground",
71 className,
72 )}
73 style={getSqueezeAnimationStyle({ duration, shakeX, shakeY }, style)}
74 {...props}
75 >
76 <svg
77 viewBox="0 0 100 100"
78 aria-hidden="true"
79 className="squeeze-animation-svg h-auto w-full max-w-80"
80 >
81 <g
82 data-slot="squeeze-animation-target"
83 className={cn(
84 "squeeze-animation-target squeeze-animation-icon",
85 targetClassName,
86 )}
87 >
88 <rect
89 x="26"
90 y="30"
91 width="48"
92 height="40"
93 rx="12"
94 fill="currentColor"
95 fillOpacity="0.1"
96 stroke="currentColor"
97 strokeWidth="6"
98 />
99 <path
100// … truncated

Files it writes

  • registry/base/ui/squeeze-animation.tsx
  • registry/base/ui/squeeze-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