شعار Hof Cp Dropdown Menu

Hof Cp Dropdown Menu

مؤسسة
openreachtech
hof-cp-dropdown-menu

Use when building a menu of actions triggered from a button or icon in a repo that consumes @openreachtech/furo-vue — "actions menu", "kebab menu", "context menu", "dropdown menu", "three-dot menu". Routes to FuroDropdownMenu.

نظرة عامة

الناشرopenreachtech
المستودعhora-skills-ort-furo
اسم المهارةhof-cp-dropdown-menu
النجوم
32
التفريعات
0
الملفات المرفقة
تعليمات فقط
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها openreachtech على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Hof Cp Dropdown Menu في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-cp-dropdown-menu
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/openreachtech/hora-skills-ort-furo.git /tmp/hora-skills-ort-furo
mkdir -p .claude/skills
cp -r /tmp/hora-skills-ort-furo/kit/skills/hof-cp-dropdown-menu .claude/skills/hof-cp-dropdown-menu
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Hof Cp Dropdown Menu في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Hof Cp Dropdown Menu تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Hof Cp Dropdown Menu بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

FuroDropdownMenu

Molecule-layer trigger-plus-floating-menu component. It renders a native trigger button (styled like FuroButton, overridable via the #trigger slot) that opens a floating menu built declaratively from a parcel.options array. Rows can be plain actions, checkbox rows, submenus, or separators — row kind is resolved automatically by priority (separator, then submenu, then checkbox, then default action). It does not use v-model: the menu only emits selection/toggle events, and the parent owns any persistent checked state for checkbox rows.

  • Layer: molecule
  • Import: import { FuroDropdownMenu } from '@openreachtech/furo-vue'
  • Manifest entry: node_modules/@openreachtech/furo-vue/public/furo-vue/components.json → components[].name === 'FuroDropdownMenu'

Read the manifest before writing markup if you need to confirm this information is still current — the library may have added props/events since this skill was written.

When NOT to use

  • A single one-shot action with no menu of choices → use hof-cp-button directly instead.
  • A floating panel that shows arbitrary content or a tooltip rather than a list of discrete actions → use hof-cp-popover.
  • A modal/drawer that takes over the flow (confirmation, form) → use hof-cp-dialog.
  • Picking one/many values from a list as part of a form field (not an actions menu) → use hof-cp-select.
  • Persistent boolean options rendered inline rather than behind a trigger → use hof-cp-checkbox-toggle or hof-cp-toggle-group.

Props

PropTypeDefaultNotes
parcelFuroDropdownMenuParcel | nullnullMenu behavior and declarative rows.
triggerParcelobject | nullnullDefault trigger appearance tokens (variant, size) aligned with FuroButton.

parcel fields

FieldTypeDefaultNotes
openbooleanuncontrolledControlled open state; omit for internal state.
disabledbooleanfalseDisables trigger and menu.
side'top' | 'right' | 'bottom' | 'left''bottom'Which edge of the trigger the menu opens against.
align'start' | 'center' | 'end''start'How the menu aligns along that edge.
sideOffsetnumber4Gap between trigger and menu, in rem-equivalent pixels.
optionsArray<FuroDropdownMenuOption>[]Declarative menu rows.

Events

EventPayloadFires when
open:change{ open: boolean }Menu open state changes.
option:selectDropdownMenuOptionSelectEmitPayloadUser selects an enabled action row.
option:checked-change{ option: FuroDropdownMenuOption, checked: boolean }User toggles a checkbox row.

There is no update:value event in the manifest — this component does not follow the v-model form-control contract; own the checked state of any checkbox rows yourself and pass it back in via parcel.options.

Slots

SlotDescription
triggerNative button labeled "Menu" (FuroButton-compatible styling). Override with label content.
option-labelOverride row label rendering. Scoped props: { option, index }. Defaults to option.label text.
defaultAppend custom menu content (advanced).

Row height

Before 1.5.0From 1.5.0
Minimum height of a menu rowFixed at calc(var(--size-input-height) - 0.5rem) in the component's CSSReads --size-option-height, which defaults to the same value, 24px
Override from the appDeclaring the token changes nothing, because the component never reads itRedefine the token, and every row follows

From 1.5.0, an app raises the rows to a larger touch target by overriding the token as /hof-lib-tokens describes, never the menu's CSS. The token holds one value in both themes, so put it on :root, either unlayered or in @layer app:

css
:root {
  --size-option-height: 2.5rem;
}

FuroSelect option rows read the same token, so the override raises them too.

Fallthrough attributes

class and style compose onto the root. Every other attribute you write on the component (id, aria-*, data-*) is dropped and reaches no element.

Usage

vue
<script>
import {
  FuroDropdownMenu,
} from '@openreachtech/furo-vue'

export default {
  components: {
    FuroDropdownMenu,
  },
}
</script>

<template>
  <FuroDropdownMenu
    :parcel="{ options: context.rowActionOptions, align: 'end' }"
    @option:select="context.onSelectRowAction({ payload: $event })"
  >
    <template #trigger>
      Actions
    </template>
  </FuroDropdownMenu>
</template>

With a checkbox row whose checked state is owned by the Context:

vue
<template>
  <FuroDropdownMenu
    :parcel="{ options: context.columnVisibilityOptions }"
    @option:checked-change="context.onToggleColumnVisibility({ payload: $event })"
  />
</template>

Rules (per project conventions)

  • This component does not follow the v-model:value form-control contract — there is no update:value event. Its emit contract is option:select for one-shot actions, option:checked-change for checkbox rows (the parent must feed the updated checked state back into parcel.options), and open:change if you choose to control open yourself instead of letting the menu manage it internally.
  • Never import the underlying headless primitive — only the public FuroDropdownMenu export.
  • Build the options array and every on... handler (onSelectRowAction, onToggleColumnVisibility, etc.) in the page/component Context, not inline in the template.
  • Pass only the parcel keys this skill lists. A component reads the keys it names and ignores the rest, so a mistyped key changes nothing and reports nothing, so check a key against the manifest rather than trusting silence.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Hof Cp Dropdown Menu؟

Use when building a menu of actions triggered from a button or icon in a repo that consumes @openreachtech/furo-vue — "actions menu", "kebab menu", "context menu", "dropdown menu", "three-dot menu". Routes to FuroDropdownMenu.

لماذا تستخدم Hof Cp Dropdown Menu على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Hof Cp Dropdown Menu عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Hof Cp Dropdown Menu في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-cp-dropdown-menu. يقرأ TypingMind ملف SKILL.md الخاص بها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Hof Cp Dropdown Menu؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Hof Cp Dropdown Menu؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Hof Cp Dropdown Menu معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Hof Cp Dropdown Menu مجانية؟

نعم. نشرها openreachtech على GitHub بموجب ترخيص Apache-2.0. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇