Toggle Vault
Animated toggle vault component with trigger, close button, and expandable content panel.
MENU
Click on the Menu button to see the Effect
Installation
npx shadcn@latest add https://scrollxui.dev/registry/toggle-vault.json
Usage
import {
ToggleVault,
ToggleVaultTrigger,
ToggleVaultContent,
ToggleVaultClose,
} from "@/components/ui/toggle-vault";
<ToggleVault>
<ToggleVaultTrigger className="w-20 h-8 text-sm">
MENU
</ToggleVaultTrigger>
<ToggleVaultClose className="w-20 h-8 text-sm">
CLOSE
</ToggleVaultClose>
<ToggleVaultContent className="w-[300px] h-[250px] p-8 text-xl flex flex-col gap-4">
<a href="#home">HOME</a>
<a href="#about">ABOUT</a>
<a href="#projects">PROJECTS</a>
<a href="#contact">CONTACT</a>
</ToggleVaultContent>
</ToggleVault>
API Reference
Toggle Vault
Expandable vault component with animated open/close, trigger button, and content panel.