Files
fn_registry/frontend/functions/ui/settings_page.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

62 lines
2.0 KiB
Markdown

---
name: settings_page
kind: function
lang: ts
domain: ui
version: "1.0.0"
purity: pure
signature: "settingsPage(props: SettingsPageProps): ReactElement"
description: "Genera una página de configuración con navegación lateral, secciones y campos de formulario (text, number, toggle, select, textarea)."
tags: [settings, page, form, sections, factory, composition, ui, pendiente-usar]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: ""
imports: [react, "@mantine/core"]
params:
- name: props
desc: "Configuración: título, secciones con campos (text, number, toggle, select, textarea) y callback onSave"
output: "Componente ReactElement que renderiza página de configuración con sidebar y secciones navegables"
tested: false
tests: []
test_file_path: ""
file_path: "frontend/functions/ui/settings_page.tsx"
source_repo: "https://gitea-dgg044oo04woo4ggcsws4gk0.organic-machine.com/Bl4cksmith/Frontend_Library"
source_license: "MIT"
source_file: ""
---
## Ejemplo
```tsx
settingsPage({
title: 'Project Settings',
sections: [
{
id: 'general',
title: 'General',
description: 'Basic project configuration',
fields: [
{ key: 'name', label: 'Project Name', type: 'text', value: 'My Project' },
{ key: 'visibility', label: 'Public', description: 'Make project visible to everyone', type: 'toggle', value: true },
{ key: 'language', label: 'Language', type: 'select', options: [{ label: 'English', value: 'en' }, { label: 'Spanish', value: 'es' }] },
],
},
{
id: 'notifications',
title: 'Notifications',
fields: [
{ key: 'email', label: 'Email notifications', type: 'toggle', value: false },
{ key: 'webhook', label: 'Webhook URL', type: 'text', placeholder: 'https://...' },
],
},
],
onSave: handleSave,
})
```
## Notas
Layout de settings estándar con sidebar de navegación (oculta en mobile). Secciones con anclas para scroll. Soporta 5 tipos de campo.