Skip to content
Docs
Algolia White Button

Algolia White Button

Algolia's white button

Loading...

Installation

CLI

pnpm dlx shadcn@latest add https://animata.design/r/button/algolia-white-button.json

Manual

Run the following command

It will create algolia-white-button.tsx and algolia-white-button.css inside the components/animata/button directory.

mkdir -p components/animata/button && touch components/animata/button/algolia-white-button.tsx components/animata/button/algolia-white-button.css

Paste the code

@layer components {
  .algolia-white-btn {
    box-shadow:
      rgba(45, 35, 66, 0.4) 0 2px 4px,
      rgba(45, 35, 66, 0.3) 0 7px 13px -3px,
      #d6d6e7 0 -3px 0 inset;
  }
 
  .algolia-white-btn:hover {
    box-shadow:
      rgba(45, 35, 66, 0.4) 0 4px 8px,
      rgba(45, 35, 66, 0.3) 0 7px 13px -3px,
      #d6d6e7 0 -3px 0 inset;
  }
 
  .algolia-white-btn:focus {
    box-shadow:
      #d6d6e7 0 0 0 1.5px inset,
      rgba(45, 35, 66, 0.4) 0 2px 4px,
      rgba(45, 35, 66, 0.3) 0 7px 13px -3px,
      #d6d6e7 0 -3px 0 inset;
  }
 
  .algolia-white-btn:active {
    box-shadow: #d6d6e7 0 3px 7px inset;
  }
}
import "./algolia-white-button.css";
 
export default function AlgoliaWhiteButton() {
  return (
    <button className="algolia-white-btn inline-flex h-12 cursor-pointer touch-manipulation items-center justify-center overflow-hidden whitespace-nowrap rounded border-0 bg-[#FCFCFD] px-4 font-mono leading-none text-slate-800 no-underline transition-transform duration-150 ease-in-out hover:-translate-y-0.5 active:translate-y-0.5">
      Algolia White
    </button>
  );
}

Credits

Built by hari