UIPin
ComponentsIconsIllustrationsMotionTemplatesApps
Boards
UIPin

Free, open-source UI components, icons, illustrations, motion, templates and apps, in one search. Every item links to its source and licence.

UIPin is free. If it saved you time, you can keep it running:

Buy me a coffee
ComponentsIconsIllustrationsMotionTemplatesAppsLibrariesCompareNew this weekMCP for agentsBoardsPrivacy

Components, icons and artwork belong to their authors and are shown under their open-source licences.

SmoothUI/Header 5

Navigation
1 of 6
Compiling

Theme it

Every preview, live

Brand colour

Corner radius

Font

Recolours shadcn’s tokens, Tailwind’s accent colours and colours set in the code. Red, amber and green classes stay, since they usually mean error, warning or success.

6 versions·1 library

  • Header 5
  • Header 1
  • Header 2
  • Header 3
  • Header 4
  • Header 6

Header 5

Spotlight hero block with dark theme and gradient text

npx shadcn@latest add https://smoothui.dev/r/header-5.json
Open in v0 Docs Repo
Library
SmoothUI
License
MIT
Stack
React · Tailwind CSS · animated · base-ui
Packages
@base-ui/reactclass-variance-authoritymotion
Also adds
index
Size
119 lines

Code

components/smoothui/header-5/index.tsx

"use client";

import SmoothButton from "@/components/smoothui/smooth-button";
import { motion, useReducedMotion } from "motion/react";

const SPRING = {
  bounce: 0.1,
  duration: 0.25,
  type: "spring" as const,
};

export function HeroSpotlight() {
  const shouldReduceMotion = useReducedMotion();

  return (
    <section aria-labelledby="hero-spotlight-heading">
      <div className="relative flex min-h-[600px] items-center justify-center overflow-hidden bg-zinc-950 py-24 md:py-32">
        {/* Spotlight beam */}
        <motion.div
          aria-hidden="true"
          className="pointer-events-none absolute top-0 left-1/2 h-full w-[600px] -translate-x-1/2"
          initial={
            shouldReduceMotion ? { opacity: 0.15 } : { opacity: 0, scaleX: 0 }
          }
          style={{
            background:
              "conic-gradient(from 180deg at 50% 0%, transparent 40%, rgba(120, 119, 198, 0.12) 50%, transparent 60%)",
          }}
          transition={
            shouldReduceMotion
              ? { duration: 0 }
              : { duration: 0.8, ease: [0.23, 1, 0.32, 1] }
          }
          viewport={{ once: true }}
          whileInView={
            shouldReduceMotion
              ? { opacity: 0.15 }
              : { opacity: 0.15, scaleX: 1 }
          }
        />

        {/* Floating particles */}
        <div
          aria-hidden="true"
          className="pointer-events-none absolute inset-0"
        >
          {Array.from({ length: 20 }, (_, i) => (
            <div
              className="absolute h-1 w-1 rounded-full bg-white/20"
              key={`particle-${i}`}
              style={{
                // Scoped keyframe name: a global `pulse` would override
                // Tailwind's animate-pulse on the whole page.
                animation: shouldReduceMotion
                  ? "none"
                  : `header-5-pulse ${2 + (i % 3)}s ease-in-out infinite ${(i % 5) * 0.5}s`,
                left: `${(i * 37 + 13) % 100}%`,
                top: `${(i * 53 + 7) % 100}%`,
              }}
            />
          ))}
        </div>

        <div className="relative z-10 mx-auto max-w-4xl px-6 text-center">
          <motion.div
            initial={
              shouldReduceMotion ? { opacity: 1 } : { opacity: 0, y: 24 }
            }
            transition={
              shouldReduceMotion
                ? { duration: 0 }
                : { ...SPRING, staggerChildren: 0.08 }
            }
            viewport={{ once: true }}
            whileInView={
              shouldReduceMotion ? { opacity: 1 } : { opacity: 1, y: 0 }
            }
          >
            <h1
              className="bg-gradient-to-b from-white to-zinc-400 bg-clip-text font-bold text-4xl text-transparent tracking-tight md:text-6xl lg:text-7xl"
              id="hero-spotlight-heading"
            >
              Build stunning interfaces
            </h1>
            <p className="mx-auto mt-6 max-w-xl text-lg text-zinc-400">
              Beautifully animated components built with React, Motion, and
              Tailwind CSS. Open source and ready for production.
            </p>
            <div className="mt-10 flex flex-wrap items-center justify-center gap-4">
              <SmoothButton
                className="bg-white text-zinc-900 hover:bg-zinc-200"
                size="lg"
              >
                Get Started
              </SmoothButton>
              <SmoothButton
                className="border-zinc-700 bg-transparent text-zinc-300 hover:bg-zinc-800"
                size="lg"
                variant="outline"
              >
                Documentation
              </SmoothButton>
            </div>
          </motion.div>
        </div>

        <style>{`
          @keyframes header-5-pulse {
            0%, 100% { opacity: 0.2; }
            50% { opacity: 0.8; }
          }
        `}</style>
      </div>
    </section>
  );
}

export default HeroSpotlight;

More like this

Cta 1

SmoothUI·Page sections

Cta 2

SmoothUI·Page sections

Header 1

SmoothUI·Navigation

Floating 3D Particles

Magic UI·Backgrounds

Features 3

SmoothUI·Cards

Border Beam Button

Cult UI·Backgrounds

Team 2

SmoothUI·Page sections

Neumorph Button

Cult UI·Text effects

Accordion

shadcn/ui·Data display

Transition Panel

Motion Primitives·Other

Logo Timeline

Eldora UI·Media & 3D

Header 4

SmoothUI·Navigation

Testimonials 2

SmoothUI·Cards

Questionnaire

HextaUI·Inputs & forms

Header 2

SmoothUI·Navigation