Socket
Book a DemoInstallSign in
Socket

@heathmont/moon-cmdk-tw

Package Overview
Dependencies
Maintainers
144
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@heathmont/moon-cmdk-tw

`SearchCmdk` is a command palette component designed to provide a quick and efficient way to search and navigate within an application.

latest
Source
npmnpm
Version
10.22.2
Version published
Weekly downloads
14
-50%
Maintainers
144
Weekly downloads
 
Created
Source

📦 Moon React SearchCmdk component package

SearchCmdk is a command palette component designed to provide a quick and efficient way to search and navigate within an application.

🚀 Features

  • 🏎 Fast and responsive search experience
  • 🔍 Supports keyboard navigation
  • 🎨 Customizable appearance and behavior
  • 🔄 Fully typed with TypeScript support

📦 Installation

Install via npm:

npm install @heathmont/moon-cmdk-tw

Or using pnpm:

pnpm install @heathmont/moon-cmdk-tw

Or yarn:

yarn @heathmont/moon-cmdk-tw

🎯 Usage

Basic Example

import { SearchCmdk } from "@heathmont/moon-cmdk-tw/lib";

const commands = [
  { label: "Open Settings", action: () => console.log("Settings opened") },
  { label: "Go to Dashboard", action: () => console.log("Navigating to Dashboard") },
];

const App = () => {
  return <SearchCmdk commands={commands} placeholder="Type a command..." />;
};

export default App;

⚙️ Props

PropTypeDescription
commandsArray<{ label: string; action: () => void }>List of commands available in the palette
placeholderstringPlaceholder text for the input field
onClose() => voidCallback when the search is closed

🎨 Customization

You can style the component using CSS variables or override styles with TailwindCSS.

🧭 Explore more

Themes package

Table package

Base package

Core package

🛠️ Contributing

If you're interested in contributing to Moon Design System, please read our contributing docs before submitting a pull request.

FAQs

Package last updated on 26 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts