VThoughtLine
Linha expansível de raciocínio do agente com timer, trace de passos e resumo ao concluir.
<script setup lang="ts">
import { VThoughtLine } from 'vueui-nova-kit'
</script>Uso
<script setup lang="ts">
</script>
<template>
</template>Playground
Os controles abaixo são gerados a partir das props declaradas em VThoughtLine.types.ts; o código acompanha cada mudança.
Exemplos
Variantes, tamanhos e estados, extraídos das stories da biblioteca.
Thinking
Variação Thinking. Props: label="Reasoning".
Ver código
<script setup lang="ts">
import { VThoughtLine } from 'vueui-nova-kit'
const steps = [
{ id: 'scan', label: 'Scanning documentation' },
{ id: 'rank', label: 'Ranking candidate answers' },
]
</script>
<template>
<VThoughtLine label="Reasoning" :steps="steps" />
</template>Complete
Variação Complete. Props: label="Reasoning", duration=3600.
Ver código
<script setup lang="ts">
import { VThoughtLine } from 'vueui-nova-kit'
const steps = [
{ id: 'scan', label: 'Scanning documentation' },
{ id: 'rank', label: 'Ranking candidate answers' },
{ id: 'draft', label: 'Drafting response outline' },
]
</script>
<template>
<VThoughtLine label="Reasoning" :steps="steps" :duration="3600" />
</template>Expanded
Variação Expandido. Props: label="Reasoning", defaultExpanded=true.
Ver código
<script setup lang="ts">
import { VThoughtLine } from 'vueui-nova-kit'
const steps = [
{ id: 'scan', label: 'Scanning documentation' },
{ id: 'rank', label: 'Ranking candidate answers' },
]
</script>
<template>
<VThoughtLine label="Reasoning" :steps="steps" default-expanded />
</template>Collapsed Trace
Variação Recolhido Trace. Props: label="Reasoning", duration=2100.
Ver código
<script setup lang="ts">
import { VThoughtLine } from 'vueui-nova-kit'
const steps = [
{
id: 'only',
label: 'Validated release notes against changelog',
},
]
</script>
<template>
<VThoughtLine label="Reasoning" :steps="steps" :duration="2100" />
</template>Acessibilidade
Header como <button> com aria-expanded. Trace oculto quando colapsado.
Estados
Thinking (timer ativo) · Complete (duration > 0) · Expanded/Collapsed trace.
Motion
| Trigger | Property | Duration | Easing |
|---|---|---|---|
| Expand trace | height/opacity | 200ms | ease-out |
| Step reveal | opacity/transform | stagger 60ms | ease-out |
Respeitar prefers-reduced-motion.
Todas as transições respeitam prefers-reduced-motion e os tokens --v-duration-*.
Props
| Prop | Tipo | Default | Descrição |
|---|---|---|---|
label | string | "Thinking" | — |
steps | VThoughtLineStep[] | [] | — |
duration | number | 0 | — |
motion | VMotionLevel | V_MOTION_DEFAULT ("expressive") | — |
defaultExpanded | boolean | false | — |
ariaLabel | string | — | — |
Events
| Evento | Payload | Descrição |
|---|---|---|
@update:expanded | value: boolean | — |
Slots
Sem slots.
Fonte: src/components/feedback/VThoughtLine/VThoughtLine.vue · tipos: src/components/feedback/VThoughtLine/VThoughtLine.types.ts