Files
fn_registry/frontend/functions/ui/radio_group.md
T
egutierrez 47fac22230 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
1.6 KiB
Markdown

---
name: radio_group
kind: component
lang: ts
domain: ui
version: "1.0.0"
purity: impure
signature: "RadioGroup(props: RadioGroupProps): JSX.Element"
description: "Grupo de opciones exclusivas accesible. Mantine Radio.Group + Radio."
tags: [radio, radio-group, component, ui, interactive, form, mantine, pendiente-usar]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: ""
imports: ["@mantine/core"]
output: "Componente RadioGroup que renderiza grupo de opciones exclusivas accesible"
tested: false
tests: []
test_file_path: ""
file_path: "frontend/functions/ui/radio_group.tsx"
props:
- name: value
type: "string"
required: false
description: "Valor seleccionado (controlado)"
- name: defaultValue
type: "string"
required: false
description: "Valor inicial (no controlado)"
- name: onValueChange
type: "(value: string) => void"
required: false
description: "Callback al cambiar seleccion"
- name: disabled
type: "boolean"
required: false
description: "Deshabilita todo el grupo"
- name: orientation
type: "'horizontal' | 'vertical'"
required: false
description: "Orientacion del grupo"
emits: [onValueChange]
has_state: false
framework: react
variant: []
---
## Ejemplo
```tsx
<RadioGroup defaultValue="option-a">
<RadioGroupItem value="option-a" label="Opcion A" />
<RadioGroupItem value="option-b" label="Opcion B" />
<RadioGroupItem value="option-c" label="Opcion C" disabled />
</RadioGroup>
```
## Notas
RadioGroup es el contenedor (Mantine Radio.Group). RadioGroupItem es cada opcion individual (Mantine Radio). Soporta orientacion horizontal y vertical.