UNPKG

cmd-dialog

Version:

Command dialog and keyboard shortcuts palette for web apps

22 lines (21 loc) 747 B
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <title>Example - light theme</title> <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script> <style type="text/tailwindcss"> @import "tailwindcss"; @custom-variant dark (&:where(.dark, .dark *)); </style> <script type="module" src="example.js"></script> </head> <body class="bg-neutral-100 antialiased leading-normal tracking-normal"> <main class="flex h-screen items-center justify-center"> <code class="text-neutral-800 text-[8rem] font-bold">⌘+K</code> <cmd-dialog theme="light"></cmd-dialog> </main> </body> </html>