arrow-down-right
heroicons-animated-angular/arrow-down-rightFreeComponent
Animated arrow-down-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-down-right.jsonSource
1import {2 ChangeDetectionStrategy,3 Component,4 computed,5 input,6 signal,7} from "@angular/core";89@Component({10 selector: "hi-arrow-down-right",11 standalone: true,12 changeDetection: ChangeDetectionStrategy.OnPush,13 host: {14 "[attr.aria-label]": "'arrow-down-right'",15 role: "img",16 "(mouseenter)": "onMouseEnter()",17 "(mouseleave)": "onMouseLeave()",18 },19 template: `<svg20 xmlns="http://www.w3.org/2000/svg"21 [attr.width]="size()"22 [attr.height]="size()"23 viewBox="0 0 24 24"24 fill="none"25 [attr.stroke]="color()"26 [attr.stroke-width]="strokeWidth()"27 stroke-linecap="round"28 stroke-linejoin="round"29 class="icon-svg"30 >31 <path32 class="head-path"33 [class.animate]="shouldAnimate()"34 d="m4.5 4.5 15 15m0 0V8.25m0 11.25H8.25"35 />36 </svg>`,37 styles: [38 `39 :host {40 display: inline-block;41 }4243 .icon-svg {44 transform-box: fill-box;45 transform-origin: center;46 }4748 .head-path {49 transform-box: fill-box;50 transform-origin: center;51 transition: transform 0.5s ease-in-out;52 }5354 .head-path.animate {55 animation: head-move 0.5s ease-in-out forwards;56 }5758 @keyframes head-move {59 0% {60 transform: translate(0, 0);61 }62 50% {63 transform: translate(-3px, -3px);64 }65 100% {66 transform: translate(0, 0);67 }68 }69 `,70 ],71})72export class ArrowDownRightIcon {73 readonly color = input("currentColor");74 readonly size = input(28);75 readonly strokeWidth = input(1.5);76 readonly animate = input(false);7778 protected isHovered = signal(false);79 protected shouldAnimate = computed(() => this.animate() || this.isHovered());8081 onMouseEnter() {82 this.isHovered.set(true);83 }8485 onMouseLeave() {86 this.isHovered.set(false);87 }88}
Files it writes
More from heroicons-animated-angular
All 316 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| academic-capacademic-cap | heroicons-animated-angular | Components | Free | no deps | |
| adjustments-horizontaladjustments-horizontal | heroicons-animated-angular | Components | Free | no deps | |
| adjustments-verticaladjustments-vertical | heroicons-animated-angular | Components | Free | no deps | |
| archive-boxarchive-box | heroicons-animated-angular | Components | Free | no deps | |
| archive-box-arrow-downarchive-box-arrow-down | heroicons-animated-angular | Components | Free | no deps | |
| archive-box-x-markarchive-box-x-mark | heroicons-animated-angular | Components | Free | no deps | |
| arrow-downarrow-down | heroicons-animated-angular | Components | Free | no deps | |
| arrow-down-circlearrow-down-circle | heroicons-animated-angular | Components | Free | no deps |
