Logo de Hof Cp Toggle Group

Hof Cp Toggle Group

Organização
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.

Visão geral

Publicado poropenreachtech
Repositóriohora-skills-ort-furo
Nome da habilidadehof-cp-toggle-group
Estrelas
32
Forks
0
Arquivos incluídos
Somente instruções
LicençaApache-2.0
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    Habilidades de IA são Markdown simples, não código específico de um provedor, por isso funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Completa em si mesma

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por openreachtech no GitHub. Leia o conteúdo-fonte antes de instalar.

Instalação

Instale a habilidade de IA Hof Cp Toggle Group no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL da pasta da habilidade exibida abaixo e confirme.
    https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-cp-toggle-group
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Nova habilidade → Via URL GitHub, depois cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Hof Cp Toggle Group em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Hof Cp Toggle Group automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Hof Cp Toggle Group não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

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.

Perguntas frequentes

O que a habilidade de IA Hof Cp Toggle Group faz?

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.

Por que usar Hof Cp Toggle Group no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. Hof Cp Toggle Group é escrito em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. O TypingMind usa suas próprias chaves de API, então o pagamento é feito diretamente aos provedores, em vez de uma assinatura por licença de usuário, e suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Hof Cp Toggle Group no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-cp-toggle-group. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Hof Cp Toggle Group?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Hof Cp Toggle Group?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Hof Cp Toggle Group com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Hof Cp Toggle Group é gratuita?

Sim. A habilidade é publicada no GitHub por openreachtech sob a licença Apache-2.0. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, modelos de documento ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas para chamar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA fornece conhecimento e um processo ao modelo: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇