1 estrella en GitHub = 1 componente nuevo.

Dar una estrella
Navegacióncommandsearchnavigation

Command Palette UI

Interfaz de paleta de comandos con buscador rápido y lista de acciones sugeridas.

Vista Previa en Vivo

📄 Create new page⌘N
🚀 Deploy to Vercel⌘D
⚙️ Open settings⌘,

Uso

Copia y pega este código directamente en tu componente React:

tsx
import { CommandPaletteUI } from 'react-component-kit-ui/navigation';

<CommandPaletteUi>Content</CommandPaletteUi>

Instalación Manual

Si no estás usando el paquete npm, crea un archivo nuevo y pega el siguiente código: src/components/CommandPaletteUI.tsx + CommandPaletteUI.css:

CommandPaletteUI.tsx
'use client';

import './CommandPaletteUI.css';

/** CommandPaletteUI — ported from astro-component-kit. */
export interface CommandPaletteUIProps {
}

export function CommandPaletteUI({}: CommandPaletteUIProps) {
  return (
    <>
      <div className="cmd-palette" data-rk-edffd8="">
        <div className="cmd-search" data-rk-edffd8="">🔍 Type a command...</div>
        <div className="cmd-list" data-rk-edffd8="">
          <div className="cmd-item" data-rk-edffd8=""><span data-rk-edffd8="">📄 Create new page</span><kbd data-rk-edffd8="">⌘N</kbd></div>
          <div className="cmd-item" data-rk-edffd8=""><span data-rk-edffd8="">🚀 Deploy to Vercel</span><kbd data-rk-edffd8="">⌘D</kbd></div>
          <div className="cmd-item" data-rk-edffd8=""><span data-rk-edffd8="">⚙️ Open settings</span><kbd data-rk-edffd8="">⌘,</kbd></div>
        </div>
      </div>
    </>
  );
}

export default CommandPaletteUI;
CommandPaletteUI.css
/* CommandPaletteUI — ported from astro-component-kit (navigation/CommandPaletteUI.astro) */

.cmd-palette:where([data-rk-edffd8]) { background: #0f172a; border: 1px solid #334155; border-radius: 12px; width: 100%; max-width: 500px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); overflow: hidden; }
.cmd-search:where([data-rk-edffd8]) { padding: 1rem; border-bottom: 1px solid #334155; color: #64748b; font-size: 0.9rem; }
.cmd-item:where([data-rk-edffd8]) { display: flex; justify-content: space-between; padding: 0.75rem 1rem; cursor: pointer; transition: 0.2s; color: #fff; font-size: 0.85rem; }
.cmd-item:hover:where([data-rk-edffd8]) { background: #1e293b; }
kbd:where([data-rk-edffd8]) { background: #111; border: 1px solid #333; padding: 2px 5px; border-radius: 4px; font-size: 0.7rem; color: #94a3b8; }

Información Rápida

Categoría
Navegación
Nombre de archivo
CommandPaletteUI.tsx
Dependencias
Ninguna — React + CSS puro
Etiquetas
commandsearchnavigation