- 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
24 lines
634 B
TypeScript
24 lines
634 B
TypeScript
"use client"
|
|
|
|
import * as React from "react"
|
|
import * as SwitchPrimitives from "@radix-ui/react-switch"
|
|
import styles from "./Switch.module.css"
|
|
|
|
const Switch = React.forwardRef<
|
|
React.ElementRef<typeof SwitchPrimitives.Root>,
|
|
React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>
|
|
>(({ className, ...props }, ref) => (
|
|
<SwitchPrimitives.Root
|
|
className={`${styles.root} ${className ?? ""}`}
|
|
{...props}
|
|
ref={ref}
|
|
>
|
|
<SwitchPrimitives.Thumb
|
|
className={`${styles.thumb} ${className ?? ""}`}
|
|
/>
|
|
</SwitchPrimitives.Root>
|
|
))
|
|
Switch.displayName = SwitchPrimitives.Root.displayName
|
|
|
|
export { Switch }
|