33 lines
710 B
Plaintext
33 lines
710 B
Plaintext
---
|
|
title: Context Menu
|
|
description: Displays a menu to the user — such as a set of actions or functions — triggered by a button.
|
|
lastUpdated: 09 Sep, 2025
|
|
links:
|
|
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/ContextMenu.tsx
|
|
---
|
|
|
|
<ComponentShowcase name="context-menu-style-default" />
|
|
<br />
|
|
<br />
|
|
|
|
<ComponentInstall>
|
|
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/context-menu" />
|
|
<ComponentInstall.Manual>
|
|
#### 1. Install dependencies:
|
|
|
|
```sh
|
|
npm install class-variance-authority
|
|
```
|
|
|
|
<br />
|
|
|
|
#### 2. Copy the code 👇 into your project:
|
|
|
|
<ComponentSource name="context-menu" />
|
|
|
|
</ComponentInstall.Manual>
|
|
</ComponentInstall>
|
|
|
|
<br />
|
|
<br />
|