Hof Cp Toggle Groupのロゴ

Hof Cp Toggle Group

組織
openreachtech
hof-cp-toggle-group

Use when building a segmented toggle control or a keyboard-navigable container that groups buttons/toggles/separators, in a repo that consumes @openreachtech/furo-vue — "toggle group", "segmented control", "formatting toolbar", "group of buttons". Routes to FuroToggleGroup, FuroToolBar.

概要

公開者openreachtech
リポジトリhora-skills-ort-furo
スキル名hof-cp-toggle-group
スター
32
フォーク
0
同梱ファイル
指示のみ
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    openreachtechがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルHof Cp Toggle GroupをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-cp-toggle-group
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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-toggle-group .claude/skills/hof-cp-toggle-group
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでHof Cp Toggle Groupを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にHof Cp Toggle Groupを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Hof Cp Toggle Groupは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

FuroToggleGroup / FuroToolBar

FuroToggleGroup is a molecule that turns a set of toggle atoms into one single- or multiple-selection control (e.g. a text-alignment segmented control) — it owns a value and emits when the selection changes. FuroToolBar is a molecule that groups arbitrary interactive controls (buttons, toggles, toggle groups, separators) into one keyboard-navigable region with roving focus — it owns no value and emits nothing; it is purely a layout/focus container. FuroToggleGroup instances are commonly placed inside a FuroToolBar's default slot alongside buttons and separators.

  • Layer: molecule (both)
  • Import: import { FuroToggleGroup, FuroToolBar } from '@openreachtech/furo-vue'
  • Manifest entries: node_modules/@openreachtech/furo-vue/public/furo-vue/components.json → components[].name === 'FuroToggleGroup' and === 'FuroToolBar'

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

When NOT to use

  • A single boolean on/off control, not a group of options → use hof-cp-checkbox-toggle instead.
  • Picking one/many values from a long or searchable list → use hof-cp-select instead.
  • A standalone action button that isn't part of a selection set → use hof-cp-button; place it inside FuroToolBar's default slot if it needs to sit next to other controls.
  • A visual divider between toolbar sections or panes → FuroSeparator (and resizable panes / scroll containers) live in hof-cp-splitter.
  • Tabbed content regions where each option swaps the visible content below → use hof-cp-tabs instead; FuroToggleGroup only tracks a selection value, it does not render panels.

FuroToggleGroup

Props

PropTypeDefaultNotes
parcelFuroToggleGroupParcel | nullnullReactive data object holding the selection, options, selection mode, variant, size, orientation, and disabled flag.

parcel fields

FieldTypeDefaultNotes
valuestring | string[]noneControlled selection. A parcel that has the key is controlled, even when it holds null; one without it is uncontrolled. A single value in single mode, an array in multiple mode. See Controlled value.
selectionMode'single' | 'multiple''single'Whether one or many options may be pressed at once.
optionsArray<{ value, label?, disabled? }>[]The toggle items. label falls back to value when omitted.
variant'default' | 'outline''default'Item styling — outline adds a border.
size'default' | 'sm' | 'lg''default'Item height and padding.
orientation'horizontal' | 'vertical''horizontal'Layout direction.
disabledbooleanfalseDisables the whole group; a per-option disabled flag disables a single item.

Events

EventPayloadFires when
change-valueToggleGroupEmitPayloadOn every selection change. Wraps a CustomEvent exposing value and the control element; isSelected({ value }) reports per-option state.
update:valuestring | string[]v-model sync of the selection.

Slots

SlotScoped propsDescription
option{ option, pressed }Custom item content (e.g. icons). Defaults to the option's label. pressed reflects whether the option is selected.

Controlled value

A click always emits change-value and update:value with the new selection. What the group shows afterwards depends on the version:

Controlled group (parcel has value)Before 1.5.0From 1.5.0
After a clickShows the clicked selection at once, whether or not the parent accepts itKeeps showing parcel.value until the parent writes the new value back
Parent ignores or rejects the emitted valueThe group drifts from parcel.value, and returns to it only when parcel.value next changesThe group stays on parcel.value
Click on the pressed item in single modeClears the display while the parent still holds the valueEmits null; the display clears only when the parent writes null back

An uncontrolled group, whose parcel has no value key, manages its own selection in both versions.

From 1.5.0, a controlled group needs its parent to write the emitted value back, or it never moves:

vue
<FuroToggleGroup
  :parcel="{
    value: form.textAlign,
    options: context.textAlignOptions,
  }"
  @update:value="context.onUpdateTextAlign({ value: $event })"
/>

To refuse a change, such as keeping one option always pressed, skip the write in the handler. From 1.5.0 the group then stays put; on 1.4.0 it shows the refused selection anyway.

FuroToolBar

Props

PropTypeDefaultNotes
parcelToolBarParcel | nullnullReactive data object holding orientation, text direction, and focus-wrap behavior.

parcel fields

FieldTypeDefaultNotes
orientation'horizontal' | 'vertical''horizontal'Layout axis. Also sets which Arrow keys move focus and the aria-orientation.
textDirection'toRight' | 'toLeft''toRight'Reading direction for the contents (toRight → left-to-right, toLeft → right-to-left).
loopFocusbooleanfalseWhen true, roving focus wraps from the last control back to the first (and vice versa).

Events

FuroToolBar has no documented events in the manifest — it carries no value and emits nothing.

Slots

SlotScoped propsDescription
default—The controls to group — buttons, toggles, toggle groups, separators.

Appearance

The FuroToggleGroup outline items and the FuroToolBar border read --color-border, the container tier of the library's two border tiers. To change that edge, override --color-border from the app side, as the library token skill (hof-lib-tokens) describes.

Usage

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

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

<template>
  <FuroToggleGroup
    v-model:value="form.textAlign"
    :parcel="{
      selectionMode: 'single',
      options: [
        { value: 'left', label: 'Left' },
        { value: 'center', label: 'Center' },
        { value: 'right', label: 'Right' },
      ],
    }"
    @change-value="context.onChangeTextAlign({ payload: $event })"
  />
</template>

Grouping buttons, a toggle group, and a separator inside a toolbar:

vue
<script>
import {
  FuroToolBar,
  FuroToggleGroup,
  FuroSeparator,
  FuroButton,
} from '@openreachtech/furo-vue'

export default {
  components: {
    FuroToolBar,
    FuroToggleGroup,
    FuroSeparator,
    FuroButton,
  },
}
</script>

<template>
  <FuroToolBar :parcel="{ orientation: 'horizontal', loopFocus: true }">
    <FuroButton @click="context.onClickUndo()">
      Undo
    </FuroButton>

    <FuroSeparator :parcel="{ orientation: 'vertical', decorative: true }" />

    <FuroToggleGroup
      v-model:value="form.textAlign"
      :parcel="{
        selectionMode: 'single',
        options: context.textAlignOptions,
      }"
    />
  </FuroToolBar>
</template>

Rules (per project conventions)

  • FuroToggleGroup follows the form-control contract: pass parcel and use v-model:value — this is the one documented exception to the project's general no-v-model rule, which applies only to custom in-project components, not to furo-vue library components.
  • FuroToolBar is not a form control: it carries no value, exposes no v-model, and emits no events. Configure it only through parcel (orientation, textDirection, loopFocus) and place child controls in its default slot.
  • Never import the underlying headless toggle-group or toolbar primitive — only the public FuroToggleGroup / FuroToolBar exports.
  • Put selection-change handling and business logic in the page/component Context (on{Field}Change style method), 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.

よくある質問

AIスキル「Hof Cp Toggle Group」では何ができますか?

Use when building a segmented toggle control or a keyboard-navigable container that groups buttons/toggles/separators, in a repo that consumes @openreachtech/furo-vue — "toggle group", "segmented control", "formatting toolbar", "group of buttons". Routes to FuroToggleGroup, FuroToolBar.

TypingMindでHof Cp Toggle Groupを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Hof Cp Toggle Groupはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにHof Cp Toggle Groupをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-cp-toggle-groupを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Hof Cp Toggle Groupを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Hof Cp Toggle Groupは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもHof Cp Toggle Groupを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Hof Cp Toggle Group」は無料ですか?

はい。openreachtechがGitHubでApache-2.0ライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇