Logo vun Hof Cp Toggle Group

Hof Cp Toggle Group

Organisatioun
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.

Iwwersiicht

Editeuropenreachtech
Repositoryhora-skills-ort-furo
Skill-Nummhof-cp-toggle-group
Stären
32
Forks
0
Matgeliwwert Fichieren
Nëmmen Instruktiounen
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum openreachtech op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Hof Cp Toggle Group an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-cp-toggle-group
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Hof Cp Toggle Group an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Hof Cp Toggle Group automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Hof Cp Toggle Group net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat Hof Cp Toggle Group op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Hof Cp Toggle Group besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Hof Cp Toggle Group an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-cp-toggle-group an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Hof Cp Toggle Group benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Hof Cp Toggle Group benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Hof Cp Toggle Group domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Hof Cp Toggle Group gratis?

Jo. De Skill gëtt vum openreachtech ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇