ngx-fancier
v1.3.0
Published
> Angular SVG wave section separators — standalone component, signal inputs, zero dependencies.
Readme
ngx-fancier
Angular SVG wave section separators — standalone component, signal inputs, zero dependencies.
Installation
npm install ngx-fancierUsage
Import the standalone component directly into your component:
import { NgxFancierComponent } from 'ngx-fancier';
@Component({
standalone: true,
imports: [NgxFancierComponent],
template: `
<section class="hero">...</section>
<ngx-fancier color="mediumpurple" />
<section class="content">...</section>
`
})
export class AppComponent {}API
| Input | Type | Default | Description |
|---|---|---|---|
| color | string | 'currentColor' | Fill color of the wave. Accepts any valid CSS color value. |
| height | string | '120px' | Height of the SVG wave. |
| flip | boolean | false | Flips the wave vertically (useful for bottom separators). |
Examples
Default wave
<ngx-fancier />Custom color and height
<ngx-fancier color="steelblue" height="200px" />Flipped (bottom separator)
<ngx-fancier color="coral" [flip]="true" />Using CSS custom properties
<ngx-fancier color="var(--primary-color)" />Compatibility
| ngx-fancier | Angular | |---|---| | 1.x | >= 22 |
