Files
fn_registry/frontend/functions/ui/timeline.md
T
egutierrez cfdf515228 chore: auto-commit (799 archivos)
- .claude/CLAUDE.md
- .claude/commands/subagentes.md
- .claude/rules/INDEX.md
- .mcp.json
- bash/functions/cybersecurity/analyze_dns.md
- bash/functions/cybersecurity/audit_http_headers.md
- bash/functions/cybersecurity/audit_ssh_config.md
- bash/functions/cybersecurity/check_firewall.md
- bash/functions/cybersecurity/detect_suspicious_users.md
- bash/functions/cybersecurity/encrypt_file.md
- ...

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 00:28:20 +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, pendiente-usar]
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.