Files
fn_registry/frontend/functions/ui/timeline.md
T
egutierrez 2d108c295a refactor: migrate frontend from shadcn/Tailwind to Mantine v9
Reescribe todos los componentes UI para usar Mantine v9 en lugar de shadcn/Tailwind.
Elimina cn(), CVA, components.json, theme_provider custom y globals.css con Tailwind.
Añade 25+ componentes nuevos (AppShell, AuthForm, DatePickerInput, Dropzone, etc.)
y MantineProvider como wrapper estándar del sistema de temas.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 23:46:44 +02:00

59 lines
1.6 KiB
Markdown

---
name: timeline
kind: component
lang: ts
domain: ui
version: "1.0.0"
purity: impure
signature: "FnTimeline(props: FnTimelineProps): JSX.Element"
description: "Timeline vertical con items, iconos y colores. Wrapper sobre Mantine Timeline."
tags: [mantine, timeline, history, events, component, ui]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: ""
imports: ["@mantine/core"]
framework: react
props:
- name: items
type: "{ title: string; description?: string; icon?: ReactNode; color?: string; time?: string }[]"
required: true
description: "Items de la timeline con titulo, descripcion, icono, color y timestamp"
- name: active
type: "number"
required: false
description: "Indice del item activo, default -1 (ninguno)"
- name: bulletSize
type: "number"
required: false
description: "Tamano del bullet en px, default 20"
output: "Timeline vertical con bullets, titulos, timestamps y descripciones"
tested: false
tests: []
test_file_path: ""
file_path: "frontend/functions/ui/timeline.tsx"
emits: []
has_state: false
variant: []
---
## Ejemplo
```tsx
import { FnTimeline } from '@fn_library'
<FnTimeline
active={1}
items={[
{ title: 'Creado', time: '2024-01-01', icon: <IconCheck size={12} /> },
{ title: 'En progreso', description: 'Pipeline ejecutando', color: 'blue' },
{ title: 'Completado' },
]}
/>
```
## Notas
Wrapper sobre Mantine `Timeline`. Recibe array declarativo de items. El `time` se muestra como texto dimmed debajo del titulo. Items despues de `active` se muestran como inactivos.