Cabecera de razonamiento de IA con pasos y temporizador.
npx shadcn@latest add https://reactbits.dev/r/ThoughtLine-TS-TW
Para acciones frecuentes: confirmar, marcar, valorar. El feedback convierte un clic en una sensación.
| Prop | Tipo | Por defecto |
|---|---|---|
| label | string | "Thinking…" |
| doneLabel | string | "" |
| renderLabel | (text, working) => ReactNode | - |
| glyph | 'sparkle' | 'dot' | 'none' | ReactNode | 'sparkle' |
| steps | string[] | [] |
| collapsible | boolean | true |
| collapseOnSettle | boolean | true |
| color | string | "currentColor" |
| glyphColor | string | "" |
| fontSize | number | 16 |
| breathPeriod | number | 1.6 |
| breathDepth | number | 0.45 |
| shimmer | boolean | true |
| shimmerDuration | number | 1.8 |
| settleDuration | number | 350 |
| settleBlur | number | 2 |
| working | boolean | true |
| settleAfter | number | 0 |
| elapsed | number | undefined |
| showTimer | boolean | true |
| onSettle | (seconds) => void | - |
| className | string | "" |
| style | CSSProperties | - |