Sound

@fabiocv/ui/sound
Sound.tsx
'use client'; import { Button } from '@fabiocv/ui/button'; import { PENTATONIC, sound, TECH, TECH_CLOSE, TECH_HOVER, } from '@fabiocv/ui/sound'; const open = sound({ ...TECH, notes: PENTATONIC }); const close = sound({ ...TECH_CLOSE, notes: PENTATONIC }); const hover = sound({ ...TECH_HOVER, notes: PENTATONIC }); export function SoundDemo() { return ( <> <Button onClick={open.play}>Open</Button> <Button onClick={close.play}>Close</Button> <Button onClick={hover.play}>Hover</Button> </> ); }
Default