BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/heroicons-animated-angular/arrow-right

arrow-right

heroicons-animated-angular/arrow-right
FreeComponent

Animated arrow-right icon for Angular

Live preview

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

Install it

npx shadcn@latest add https://angular.heroicons-animated.com/r/arrow-right.json

Source

packages/angular/src/icons/arrow-right.tsangular.heroicons-animated.com/r/arrow-right.json
1import {
2 ChangeDetectionStrategy,
3 Component,
4 computed,
5 DestroyRef,
6 type ElementRef,
7 effect,
8 inject,
9 input,
10 signal,
11 viewChild,
12} from "@angular/core";
13
14@Component({
15 selector: "hi-arrow-right",
16 standalone: true,
17 changeDetection: ChangeDetectionStrategy.OnPush,
18 host: {
19 "[attr.aria-label]": "'arrow-right'",
20 role: "img",
21 "(mouseenter)": "onMouseEnter()",
22 "(mouseleave)": "onMouseLeave()",
23 },
24 template: `<svg
25 xmlns="http://www.w3.org/2000/svg"
26 [attr.width]="size()"
27 [attr.height]="size()"
28 viewBox="0 0 24 24"
29 fill="none"
30 [attr.stroke]="color()"
31 [attr.stroke-width]="strokeWidth()"
32 stroke-linecap="round"
33 stroke-linejoin="round"
34 class="icon-svg"
35 >
36 <path class="head-path" [class.animate]="shouldAnimate()" d="M13.5 4.5 21 12m0 0-7.5 7.5" />
37 <path #linePath d="M21 12H3" />
38 </svg>`,
39 styles: [
40 `
41 :host {
42 display: inline-block;
43 }
44 .icon-svg {
45 transform-box: fill-box;
46 transform-origin: center;
47 }
48 .head-path {
49 transform-box: fill-box;
50 transform-origin: center;
51 transition: transform 0.4s ease-in-out;
52 }
53 .head-path.animate {
54 animation: head-translate 0.4s ease-in-out forwards;
55 }
56 @keyframes head-translate {
57 0% {
58 transform: translateX(0);
59 }
60 50% {
61 transform: translateX(-3px);
62 }
63 100% {
64 transform: translateX(0);
65 }
66 }
67 `,
68 ],
69})
70export class ArrowRightIcon {
71 readonly color = input("currentColor");
72 readonly size = input(28);
73 readonly strokeWidth = input(1.5);
74 readonly animate = input(false);
75
76 protected isHovered = signal(false);
77 protected shouldAnimate = computed(() => this.animate() || this.isHovered());
78
79 private readonly linePathRef =
80 viewChild<ElementRef<SVGPathElement>>("linePath");
81 private readonly destroyRef = inject(DestroyRef);
82
83 private readonly LINE_PATH_KEYFRAMES = [
84 "M21 12H3",
85 "M18 12H3",
86 "M21 12H3",
87 ] as const;
88 private readonly LINE_PATH_TIMES = [0, 0.5, 1] as const;
89 private readonly lineAnimationDuration = 400;
90 private readonly NUMBER_PATTERN = /-?\d*\.?\d+(?:e[-+]?\d+)?/gi;
91 private lineAnimationFrame: number | null = null;
92 private readonly parsedLinePaths: { template: string; numbers: number[] }[];
93 private readonly lineTemplate: string;
94 private readonly lineNumberCount: number;
95 private readonly canMorphLine: boolean;
96
97// … truncated

Files it writes

  • packages/angular/src/icons/arrow-right.ts

Facts

Registry
heroicons-animated-angular
Type
registry:component
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-04
Last confirmed
today

Go to the source

Docs on heroicons-animated-angular angular.heroicons-animated.com heroicons-animated/heroicons-animated-angular on GitHub Raw registry item This item as JSON

More from heroicons-animated-angular

All 316 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
academic-capacademic-capheroicons-animated-angularComponentsFreeno deps
adjustments-horizontaladjustments-horizontalheroicons-animated-angularComponentsFreeno deps
adjustments-verticaladjustments-verticalheroicons-animated-angularComponentsFreeno deps
archive-boxarchive-boxheroicons-animated-angularComponentsFreeno deps
archive-box-arrow-downarchive-box-arrow-downheroicons-animated-angularComponentsFreeno deps
archive-box-x-markarchive-box-x-markheroicons-animated-angularComponentsFreeno deps
arrow-downarrow-downheroicons-animated-angularComponentsFreeno deps
arrow-down-circlearrow-down-circleheroicons-animated-angularComponentsFreeno deps
BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex