Skip to content

ContentTerminal ​

A terminal session: commands as kbd, output as samp, and a copy that takes only the commands.

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

Usage ​

vue
<ContentTerminal />

Example ​

Shell
npm install @zairakai/vue-components
added 1 package
npm test
vue
<template>
  <ContentTerminal
    title="Shell"
    :lines="['$ npm install @zairakai/vue-components', 'added 1 package', '$ npm test']"
  />
</template>

Props ​

NameTypeDefaultDescription
idstring
classstring
linesarray[]The session: a string per line ("$ npm install" is a command, the rest is output) or { type: "command" | "output" | "comment", text }.
promptstring'$'
titlestring
copyablebooleantrue
copyLabelstring'Copy'
copiedLabelstring'Copied'

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.