All components

Button Hover Top Flip

Button Hover Top Flip is a React and Tailwind CSS overlay component from UI Layouts, licensed MIT. Copy it and paste it into your project.

UI Layouts MIT overlays

What it is

Button Hover Top Flip is a React and Tailwind CSS overlay component from UI Layouts, licensed MIT. Copy it and paste it into your project.

How to use it

Open it in the catalogue, press copy, and paste it into your project. The prompt you copy carries the code and the rules that tell your agent to reproduce it without changing anything.

Open in the catalogue

Five free copies a month. No card.

No packages beyond the project baseline

Licence

This component comes from UI Layouts and is redistributed under the MIT licence, which permits commercial use. The copyright notice travels with the code.

Button Hover Top Flip

./registry/components/button/btn-hover-top-flip.tsx
'use client';

const ButtonHoverTopFlip = () => {
  return (
    <>
      <button className='group relative inline-flex h-12 items-center justify-center overflow-hidden rounded-md  border-2 dark:border-[#656fe2] border-[#394481]  font-medium'>
        <div className='inline-flex h-12 translate-y-0 items-center justify-center  bg-linear-to-r dark:from-[#070e41] dark:to-[#263381] from-[#f7f8ff] to-[#ffffff]   px-6 dark:text-white text-black transition group-hover:-translate-y-[150%]'>
          Contact me
        </div>
        <div className='absolute inline-flex h-12 w-full translate-y-full items-center justify-center bg-[#394481] dark:bg-[#656fe2] px-6 text-neutral-50 transition duration-300 group-hover:translate-y-0'>
          Contact me
        </div>
      </button>
    </>
  );
};

export default ButtonHoverTopFlip;

Similar components