SDAIA

قائمة السياق

A context menu component triggered by right-click or long press. Provides a list of contextual actions for the selected target مع دعم كامل لـ RTL.

Loading demo: context-menu-real-world

التثبيت

npx sdaia-ui@latest add context-menu

الاستخدام

import { ContextMenu } from "@/components/ui/context-menu"
<ContextMenu />

الأمثلة

الافتراضي

Context menu with a list of relevant actions. يمين-click the target to trigger it.

Loading demo: contextmenu-default

مرجع الواجهة البرمجية

ContextMenuProps

خصائص مكوّن ContextMenu.

Prop

Type

Default

Required

items

ContextMenuItem[]

[]

optional

className

string

-

optional