Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

feat: icon barchart

dev_wandry14d427e8668c
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsx
index a1a90eb1..9419ac04 100644
--- a/components/docs/icons-gallery.tsx
+++ b/components/docs/icons-gallery.tsx
@@ -14,6 +14,7 @@ import { ArrowLeftIconStatic } from "@/registry/remocn/icon-arrow-left";
import { ArrowRightIconStatic } from "@/registry/remocn/icon-arrow-right";
import { ArrowUpIconStatic } from "@/registry/remocn/icon-arrow-up";
import { AtSignIconStatic } from "@/registry/remocn/icon-at-sign";
+import { BarChart3IconStatic } from "@/registry/remocn/icon-bar-chart-3";
import { BellIconStatic } from "@/registry/remocn/icon-bell";
import { BookmarkIconStatic } from "@/registry/remocn/icon-bookmark";
import { CalendarIconStatic } from "@/registry/remocn/icon-calendar";
@@ -322,6 +323,12 @@ export const ICONS: IconEntry[] = [
category: "Commerce",
Static: WalletIconStatic,
},
+ {
+ name: "icon-bar-chart-3",
+ label: "Bar Chart 3",
+ category: "Charts & data",
+ Static: BarChart3IconStatic,
+ },
{
name: "icon-search",
label: "Search",
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index cf6281c3..bb76d5d6 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -30,6 +30,7 @@ import { iconArrowLeftConfig } from "@/registry/remocn/icon-arrow-left/config";
import { iconArrowRightConfig } from "@/registry/remocn/icon-arrow-right/config";
import { iconArrowUpConfig } from "@/registry/remocn/icon-arrow-up/config";
import { iconAtSignConfig } from "@/registry/remocn/icon-at-sign/config";
+import { iconBarChart3Config } from "@/registry/remocn/icon-bar-chart-3/config";
import { iconBellConfig } from "@/registry/remocn/icon-bell/config";
import { iconBookmarkConfig } from "@/registry/remocn/icon-bookmark/config";
import { iconCalendarConfig } from "@/registry/remocn/icon-calendar/config";
@@ -689,6 +690,13 @@ const registry: Record<string, RegistryEntry> = {
})),
config: iconAtSignConfig,
},
+ "icon-bar-chart-3": {
+ load: () =>
+ import("@/registry/remocn/icon-bar-chart-3").then((m) => ({
+ default: m.BarChart3Icon,
+ })),
+ config: iconBarChart3Config,
+ },
"icon-bell": {
load: () =>
import("@/registry/remocn/icon-bell").then((m) => ({
diff --git a/registry/remocn/icon-bar-chart-3/config.ts b/registry/remocn/icon-bar-chart-3/config.ts
new file mode 100644
index 00000000..7bea95f2
--- /dev/null
+++ b/registry/remocn/icon-bar-chart-3/config.ts
@@ -0,0 +1,44 @@
+import { type ComponentConfig, FPS } from "@/lib/customizer-config";
+
+export const iconBarChart3Config: ComponentConfig = {
+ componentName: "BarChart3Icon",
+ importPath: "@/components/remocn/icon-bar-chart-3",
+ controls: {
+ animation: {
+ type: "select",
+ default: "both",
+ options: ["draw", "action", "both"],
+ label: "Animation",
+ },
+ loop: {
+ type: "boolean",
+ default: false,
+ label: "Loop",
+ },
+ size: {
+ type: "number",
+ default: 48,
+ min: 24,
+ max: 200,
+ step: 4,
+ label: "Size",
+ },
+ color: {
+ type: "color",
+ default: "#171717",
+ label: "Color",
+ },
+ strokeWidth: {
+ type: "number",
+ default: 2,
+ min: 1,
+ max: 3,
+ step: 0.25,
+ label: "Stroke width",
+ },
+ },
+ durationInFrames: 80,
+ fps: FPS,
+ compositionWidth: 48,
+ compositionHeight: 48,
+};
diff --git a/registry/remocn/icon-bar-chart-3/index.tsx b/registry/remocn/icon-bar-chart-3/index.tsx
new file mode 100644
index 00000000..5a16cf0a
--- /dev/null
+++ b/registry/remocn/icon-bar-chart-3/index.tsx
@@ -0,0 +1,118 @@
+"use client";
+
+import { Easing, interpolate } from "remotion";
+import {
+ drawnPathProps,
+ type IconAnimationProps,
+ useIconAnimation,
+} from "@/lib/remocn-icons";
+
+const AXIS_PATH = "M3 3v16a2 2 0 0 0 2 2h16";
+const BARS = ["M8 17V14", "M13 17V5", "M18 17V9"];
+const BASE_Y = 17;
+
+const TIMINGS = {
+ drawDurationInFrames: 12,
+ actionDelayInFrames: 2,
+ actionDurationInFrames: 30,
+ loop: false,
+} as const;
+
+export function BarChart3Icon({
+ animation = "both",
+ loop,
+ speed,
+ size = 48,
+ color = "currentColor",
+ strokeWidth = 2,
+ className,
+}: IconAnimationProps) {
+ const { drawProgress, scaleIn, actionProgress, actionFrame } =
+ useIconAnimation({ animation, loop, speed }, TIMINGS);
+
+ const acting = animation !== "draw" && actionFrame >= 0;
+
+ const axis = drawnPathProps(AXIS_PATH, drawProgress);
+
+ const bars = BARS.map((d, i) => {
+ const start = i * 0.22;
+ const grow = interpolate(
+ actionProgress,
+ [start, start + 0.3, start + 0.42],
+ [0, 1.08, 1],
+ {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ },
+ );
+ const scaleY = animation === "draw" ? 1 : acting ? grow : 0;
+ return { d, scaleY };
+ });
+
+ const scale = 0.85 + 0.15 * scaleIn;
+
+ return (
+ <svg
+ className={className}
+ width={size}
+ height={size}
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke={color}
+ strokeWidth={strokeWidth}
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ style={{
+ overflow: "visible",
+ transformOrigin: "center",
+ transform: `scale(${scale})`,
+ }}
+ >
+ <path
+ d={AXIS_PATH}
+ strokeDasharray={axis.strokeDasharray}
+ strokeDashoffset={axis.strokeDashoffset}
+ />
+ {bars.map((bar) => (
+ <g
+ key={bar.d}
+ transform={`translate(0 ${BASE_Y * (1 - bar.scaleY)}) scale(1 ${bar.scaleY})`}
+ >
+ <path d={bar.d} />
+ </g>
+ ))}
+ </svg>
+ );
+}
+
+export function BarChart3IconStatic({
+ size = 48,
+ color = "currentColor",
+ strokeWidth = 2,
+ className,
+}: {
+ size?: number;
+ color?: string;
+ strokeWidth?: number;
+ className?: string;
+}) {
+ return (
+ <svg
+ className={className}
+ width={size}
+ height={size}
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke={color}
+ strokeWidth={strokeWidth}
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ >
+ <path d={AXIS_PATH} />
+ <path d="M18 17V9" />
+ <path d="M13 17V5" />
+ <path d="M8 17v-3" />
+ </svg>
+ );
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index bccfc00b..320fd9d9 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -2599,6 +2599,21 @@
}
]
},
+ {
+ "name": "icon-bar-chart-3",
+ "type": "registry:component",
+ "title": "Bar Chart 3",
+ "description": "Animated Lucide bar-chart-3 icon — the axis draws on, then three bars rise left to right with overshoot: the classic growth chart.",
+ "dependencies": ["remotion"],
+ "registryDependencies": ["@remocn/icons-core"],
+ "files": [
+ {
+ "path": "icon-bar-chart-3/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/icon-bar-chart-3.tsx"
+ }
+ ]
+ },
{
"name": "icon-user",
"type": "registry:component",