Skip to content

ContentCodeGroup ​

Code blocks in tabs. The choice is shared between the groups with the same name and remembered.

ts
import { ContentCodeGroup } from '@zairakai/vue-components/Content'

Usage ​

vue
<ContentCodeGroup />

Props ​

NameTypeDefaultDescription
idstring
classstring
tabsarray[]The tabs: { id, label, code, language, title }.
modelValuestringundefinedThe active tab. Without it the first one, or what the visitor chose in the group.
groupstringGroups with the same name show the same choice (npm, yarn, pnpm...) and it is remembered.
labelstring'Code'

Events ​

NameDescription
update:modelValue

See Theming for the class hooks and the data-* state of the components.

Documentation of 1.4.4 , built from 8e9b054 on 1.4.4 by pipeline #2989941079 on 2026-10-26.