adjustments-vertical
heroicons-animated-angular/adjustments-verticalFreeComponent
Animated adjustments-vertical 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/adjustments-vertical.jsonSource
1import {2 ChangeDetectionStrategy,3 Component,4 computed,5 DestroyRef,6 effect,7 inject,8 input,9 signal,10} from "@angular/core";1112type VerticalStateKey =13 | "col1TopY2"14 | "col1BottomY1"15 | "col1KnobCY"16 | "col2TopY2"17 | "col2BottomY1"18 | "col2KnobCY"19 | "col3TopY2"20 | "col3BottomY1"21 | "col3KnobCY";2223type VerticalState = Record<VerticalStateKey, number>;2425@Component({26 selector: "hi-adjustments-vertical",27 standalone: true,28 changeDetection: ChangeDetectionStrategy.OnPush,29 host: {30 "[attr.aria-label]": "'adjustments-vertical'",31 role: "img",32 "(mouseenter)": "onMouseEnter()",33 "(mouseleave)": "onMouseLeave()",34 },35 template: `<svg36 xmlns="http://www.w3.org/2000/svg"37 [attr.width]="size()"38 [attr.height]="size()"39 viewBox="0 0 24 24"40 fill="none"41 [attr.stroke]="color()"42 [attr.stroke-width]="strokeWidth()"43 stroke-linecap="round"44 stroke-linejoin="round"45 class="icon-svg"46 >47 <line x1="6" x2="6" y1="3.75" [attr.y2]="col1TopY2()" />48 <line x1="6" x2="6" [attr.y1]="col1BottomY1()" y2="20.25" />49 <circle cx="6" [attr.cy]="col1KnobCY()" fill="none" r="1.5" />5051 <line x1="12" x2="12" y1="3.75" [attr.y2]="col2TopY2()" />52 <line x1="12" x2="12" [attr.y1]="col2BottomY1()" y2="20.25" />53 <circle cx="12" [attr.cy]="col2KnobCY()" fill="none" r="1.5" />5455 <line x1="18" x2="18" y1="3.75" [attr.y2]="col3TopY2()" />56 <line x1="18" x2="18" [attr.y1]="col3BottomY1()" y2="20.25" />57 <circle cx="18" [attr.cy]="col3KnobCY()" fill="none" r="1.5" />58 </svg>`,59 styles: [60 `61 :host {62 display: inline-block;63 }64 .icon-svg {65 transform-box: fill-box;66 transform-origin: center;67 }68 `,69 ],70})71export class AdjustmentsVerticalIcon {72 readonly color = input("currentColor");73 readonly size = input(28);74 readonly strokeWidth = input(1.5);75 readonly animate = input(false);7677 protected isHovered = signal(false);78 protected shouldAnimate = computed(() => this.animate() || this.isHovered());7980 protected col1TopY2 = signal(13.5);81 protected col1BottomY1 = signal(16.5);82 protected col1KnobCY = signal(15);83 protected col2TopY2 = signal(7.5);84 protected col2BottomY1 = signal(10.5);85 protected col2KnobCY = signal(9);86 protected col3TopY2 = signal(13.5);87 protected col3BottomY1 = signal(16.5);88 protected col3KnobCY = signal(15);8990 private readonly DURATION_MS = 450;91 private readonly NORMAL_STATE: VerticalState = {92 col1TopY2: 13.5,93// … truncated
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 | |
| 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 | |
| arrow-down-leftarrow-down-left | heroicons-animated-angular | Components | Free | no deps |
