slide-to-unlock-block-01
ncdai/slide-to-unlock-block-01UnverifiedBlock
ncdai publishes no description for this item.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/Prashant-thakur77/myportfolio/main/public/r/slide-to-unlock-block-01.jsonSource
1"use client";23import { toast } from "sonner";45import { useSound } from "@/hooks/use-sound";6import { ShimmeringText } from "@/registry/shimmering-text";7import {8 SlideToUnlock,9 SlideToUnlockHandle,10 SlideToUnlockText,11 SlideToUnlockTrack,12} from "@/registry/slide-to-unlock";1314export default function SlideToUnlockDemo1() {15 const playSound = useSound("/audio/ui-sounds/unlock.wav");1617 return (18 <SlideToUnlock19 onUnlock={() => {20 playSound();21 toast.success("Unlocked");22 }}23 >24 <SlideToUnlockTrack>25 <SlideToUnlockText>26 {({ isDragging }) => (27 <ShimmeringText text="slide to unlock" isStopped={isDragging} />28 )}29 </SlideToUnlockText>30 <SlideToUnlockHandle />31 </SlideToUnlockTrack>32 </SlideToUnlock>33 );34}
What it pulls in
Other registry items
Files it writes
More from ncdai
All 48 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Blog 01blog-01 | ncdai | Blocks | Unverified | 1 dep · 2 files | |
| Blog 02blog-02 | ncdai | Blocks | Unverified | 1 dep · 2 files | |
| Experience 01experience-01 | ncdai | Blocks | Unverified | no deps | |
| Hero 01hero-01 | ncdai | Blocks | Unverified | no deps · 2 files | |
| Login 01login-01 | ncdai | Blocks | Unverified | no deps · 2 files | |
| Metrics 01metrics-01 | ncdai | Blocks | Unverified | 1 dep · 2 files | |
| scroll-fade-effect-block-01scroll-fade-effect-block-01 | ncdai | Blocks | Unverified | no deps | |
| scroll-fade-effect-block-02scroll-fade-effect-block-02 | ncdai | Blocks | Unverified | no deps |
