PeakedGradient
A beautiful, customizable layered gradient peak component for React and Next.js. Perfect for hero sections, backgrounds, and visual accents.
100
50
50
Color
Base
Generated:
Configuration
<PeakedGradient
colors={[
'#B6C9FF',
'#8AA8FF',
'#285fff',
'#0041ff',
'#000000',
]}
peakHeight={100}
pointiness={50}
blur={50}
/>Installation
npm install peaked-gradientyarn add peaked-gradientpnpm add peaked-gradientUsage
import { PeakedGradient } from 'peaked-gradient'<PeakedGradient
colors={[
'#B6C9FF',
'#8AA8FF',
'#285fff',
'#0041ff',
'#000000',
]}
peakHeight={100}
pointiness={50}
blur={50}
/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
colors | [string, string, string, string, string] | - | 5 hex colors for the gradient layers |
peakHeight | number | 100 | Peak height (0-100) |
pointiness | number | 50 | Sharpness of the peak (0-100) |
blur | number | 50 | Blur amount (0-100). 0 = no blur, 50 = default, 100 = double blur |
className | string | - | Optional CSS class |
style | CSSProperties | - | Optional inline styles |