0.1.0 • Published 6 months ago

@ar-dacity/ardacity-header-one v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

ArDacity Header One

A stylish animated header component with integrated ArDacity Navbar and GSAP animations.

Features

  • 🎬 Smooth GSAP animations for text and images
  • 🧩 Integrated ArDacity Navbar
  • 📱 Fully responsive design
  • 🌙 Dark theme by default
  • ✨ Customizable content

Installation

npm install @ar-dacity/ardacity-header-one gsap

Usage

import { ArdacityHeaderOne } from '@ar-dacity/ardacity-header-one';
import '@ar-dacity/ardacity-navbar/dist/styles.css'; // Important for navbar styling

function App() {
  return (
    <ArdacityHeaderOne 
      name="Vibhansh Alok"
      title="Web Developer"
      navLinks={[
        { label: 'Home', href: '#', isActive: true },
        { label: 'Projects', href: '#projects' },
        { label: 'About', href: '#about' },
        { label: 'Contact', href: '#contact' }
      ]}
      images={[
        "/path/to/image1.jpg",
        "/path/to/image2.jpg",
        "/path/to/image3.jpg"
      ]}
    />
  );
}

Props

PropTypeDefaultDescription
namestring"Vibhansh Alok"Name to display in the header
titlestring"Web Developer"Title or role
navLinksarrayBasic navigation linksNavigation links
imagesarraySample imagesImage URLs for the header
classNamestring''Custom class for the header
navbarPropsobjectundefinedProps for the navbar component

Customizing Navbar

You can customize the navbar by passing props through the navbarProps property:

<ArdacityHeaderOne 
  navbarProps={{
    variant: 'glass',
    position: 'fixed',
    showWalletButton: true
  }}
/>

Dependencies

This component requires the following dependencies:

  • GSAP (for animations)
  • ArDacity Navbar (for navigation)

License

MIT