@omnedia/ngx-border-beam
Version:
A simple component library to create a container with an animated border.
25 lines (22 loc) • 1.38 kB
TypeScript
import * as i0 from '@angular/core';
import { AfterViewInit, OnDestroy, ElementRef } from '@angular/core';
declare class NgxBorderBeamComponent implements AfterViewInit, OnDestroy {
private platformId;
borderBeamRef: ElementRef<HTMLElement>;
set colorFrom(color: string);
set colorTo(color: string);
set borderRadius(radius: string);
set borderColor(color: string);
set animationDuration(duration: string);
set cubeSize(cubeSize: string);
styleClass?: string;
style: any;
isInView: i0.WritableSignal<boolean>;
private intersectionObserver?;
constructor(platformId: object);
ngAfterViewInit(): void;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NgxBorderBeamComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NgxBorderBeamComponent, "om-border-beam", never, { "colorFrom": { "alias": "gradientColorStart"; "required": false; }; "colorTo": { "alias": "gradientColorEnd"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "borderColor": { "alias": "borderColor"; "required": false; }; "animationDuration": { "alias": "animationDuration"; "required": false; }; "cubeSize": { "alias": "cubeSize"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; }, {}, never, ["*"], true, never>;
}
export { NgxBorderBeamComponent };