Licence
Apache-2.0
Version
0.1.1
Deps
1
Size
24 kB
Vulns
0
Weekly
0
Hero made by @ybouane.
@crazygl/hero-dropcap
Editorial paragraph with a single, oversized serif drop-cap that overhangs the leading margin — drop straight into a magazine layout.
Demo
Install
npm install @crazygl/hero-dropcapUsage
import DropCap from '@crazygl/hero-dropcap';
export default function Hero() {
return (
<DropCap
body="It begins with a single letter — a quiet kind of restraint."
dropCapColor="#ffd86b"
dropCapSize={5}
/>
);
}Customise
- Content —
bodyparagraph text (the first character becomes the drop-cap). - Drop-cap —
dropCapColor,dropCapSize(em scale),dropCapLines(lines spanned). - Typography —
textColor,fontSize,headingFontFamily(Google font),headingFontWeight,lineHeight. - Backdrop —
transparentBackground,bgColor.
Best for
- Editorial / magazine landing pages and long-form intros.
- Blog or essay headers that want a literary, print feel.
- Brand stories where typography carries the tone.
This hero is part of CrazyGL, a collection of production-ready WebGL, canvas, 3D, and typography effects. Every CrazyGL hero ships with an agent-ready SKILL.md file that helps developers and coding agents adapt the effect into custom landing pages and interactive experiences.