Skip to content

Instantly share code, notes, and snippets.

View dan-myles's full-sized avatar
🎯
Focusing

dan dan-myles

🎯
Focusing
View GitHub Profile
@dan-myles
dan-myles / screen-indicator.tsx
Created April 15, 2024 00:48
Easy to use, nice looking screen size indicator :P
"use client"
export function ScreenIndicator() {
if (process.env.NODE_ENV === "production") return null
return (
<div className="fixed bottom-1 left-1 z-50 flex h-6 w-6 items-center justify-center rounded-full bg-gray-800 p-3 font-mono text-xs text-white">
<div className="block sm:hidden">xs</div>
<div className="hidden sm:block md:hidden lg:hidden xl:hidden 2xl:hidden">
sm