@damarkuncoro/hero-engine
v0.1.1
Published
Headless hero section engine with slots and layout patterns
Maintainers
Readme
@damarkuncoro/hero-engine
Headless hero section engine with slots and layout patterns.
Features
- Slot Architecture: Content slots for
title,description,actions, andvisual(image/video/3d). - Layout Patterns: Pre-built patterns like
split,centered,fullscreen, andoverlap. - Responsive: Dynamic layout adjustments based on viewport size.
- Headless: Pure logic and structure, no forced styles.
Installation
npm install @damarkuncoro/hero-engineUsage
import { Hero } from "@damarkuncoro/hero-engine"
const myHero = Hero({
pattern: "split",
title: "Build faster with Headless UI",
description: "A set of unstyled, fully accessible UI components.",
actions: [
{ label: "Get Started", primary: true },
{ label: "View on GitHub" }
],
visual: "/hero-image.png"
})License
MIT
