Syed

Chevron Button

Component

About

Tactile dark-chassis CTA button with a glossy neon-lime dot-matrix chevron pill that expands smoothly across the full button on hover or keyboard focus, uncovering a cascading left-to-right LED chevron wave.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Chevron Button to your project and fits it to your theme.

Code

How Chevron Button is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import React from "react";
import {
  MatrixChevronButton,
  type MatrixChevronAccent,
  type MatrixChevronSize,
  type MatrixChevronTrigger,
} from "@/components/ui/chevron-button";

const settings = {
  label: "Book a demo",
  accent: "lime",
  size: "md",
  trigger: "click",
  waveSpeed: 1.6,
  disabled: false,
};

const VALID_ACCENTS: MatrixChevronAccent[] = ["lime", "amber", "cyan", "coral"];
const VALID_SIZES: MatrixChevronSize[] = ["sm", "md", "lg"];
const VALID_TRIGGERS: MatrixChevronTrigger[] = ["click", "hover"];

export default function MatrixChevronButtonDemo(
  props: Partial<typeof settings>
) {
  const config = { ...settings, ...props };

  const accent: MatrixChevronAccent = VALID_ACCENTS.includes(
    config.accent as MatrixChevronAccent
  )
    ? (config.accent as MatrixChevronAccent)
    : "lime";

  const size: MatrixChevronSize = VALID_SIZES.includes(
    config.size as MatrixChevronSize
  )
    ? (config.size as MatrixChevronSize)
    : "md";

  const trigger: MatrixChevronTrigger = VALID_TRIGGERS.includes(
    config.trigger as MatrixChevronTrigger
  )
    ? (config.trigger as MatrixChevronTrigger)
    : "click";

  const waveSpeed =
    typeof config.waveSpeed === "number" && Number.isFinite(config.waveSpeed)
      ? Math.min(Math.max(config.waveSpeed, 0.5), 5)
      : 1.6;

  return (
    <div className="flex min-h-[320px] w-full items-center justify-center p-8">
      <MatrixChevronButton
        label={
          typeof config.label === "string" && config.label.trim()
            ? config.label
            : "Book a demo"
        }
        accent={accent}
        size={size}
        trigger={trigger}
        waveSpeed={waveSpeed}
        disabled={Boolean(config.disabled)}
      />
    </div>
  );
}

export { MatrixChevronButtonDemo as Demo, MatrixChevronButtonDemo as demo };

Dependencies

More by Syed

View all
  • Animated Beam Integration

    Animated Beam Integration

    150
  • Emotion Wheel v2

    Emotion Wheel v2

    137
  • SpatialCardCarousel

    SpatialCardCarousel

    122
  • Agency Bento Grid

    Agency Bento Grid

    95
  • Morphing Island Navbar

    Morphing Island Navbar

    90
  • Projec tWorkflow Tree

    Projec tWorkflow Tree

    88
  • Unlimited Design Hero

    Unlimited Design Hero

    83
  • Schedule Calendar

    Schedule Calendar

    67