- Spotify playlist, library, album and artist browsing with in-app playback - Song, playlist and album downloads via spotdl with YouTube and Bandcamp fallbacks - Electron desktop app (castLabs Widevine) with a permanent sidebar layout - Linux and Windows packaging scripts
26 lines
785 B
TypeScript
26 lines
785 B
TypeScript
"use client"
|
|
|
|
import * as React from "react"
|
|
import * as HoverCardPrimitive from "@radix-ui/react-hover-card"
|
|
import styles from "./HoverCard.module.css"
|
|
|
|
const HoverCard = HoverCardPrimitive.Root
|
|
|
|
const HoverCardTrigger = HoverCardPrimitive.Trigger
|
|
|
|
const HoverCardContent = React.forwardRef<
|
|
React.ElementRef<typeof HoverCardPrimitive.Content>,
|
|
React.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content>
|
|
>(({ className, align = "center", sideOffset = 4, ...props }, ref) => (
|
|
<HoverCardPrimitive.Content
|
|
ref={ref}
|
|
align={align}
|
|
sideOffset={sideOffset}
|
|
className={`${styles.content} ${className ?? ""}`}
|
|
{...props}
|
|
/>
|
|
))
|
|
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName
|
|
|
|
export { HoverCard, HoverCardTrigger, HoverCardContent }
|