button-active

PreviousNext
Docs
ui-layoutscomponent

Preview

Loading preview…
./registry/components/button/btn-active.tsx
import React from 'react';

function ButtonActive() {
  return (
    <>
      <button className='group relative inline-flex h-12 items-center justify-center overflow-hidden rounded-md  bg-linear-to-r dark:from-[#070e41] dark:to-[#263381] from-[#f6f7ff] to-[#f5f6ff] dark:border-[rgb(76_100_255)] border-2 border-[#263381]  bg-transparent px-6 font-medium dark:text-white text-black transition-all duration-100 hover:[box-shadow:5px_5px_rgb(38_51_129)] translate-x-[3px] hover:translate-x-[0px] translate-y-[3px] hover:translate-y-[0px]   [box-shadow:0px_0px_rgb(38_51_129)] dark:hover:[box-shadow:5px_5px_rgb(76_100_255)]dark:active:[box-shadow:0px_0px_rgb(76_100_255)] active:[box-shadow:0px_0px_rgb(38_51_129)] active:translate-y-[3px] active:translate-x-[3px]'>
        Contact me
      </button>
    </>
  );
}

export default ButtonActive;

Installation

npx shadcn@latest add @ui-layouts/button-active

Usage

import { ButtonActive } from "@/components/button-active"
<ButtonActive />