47fac22230
- .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>
2.3 KiB
2.3 KiB
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, output, tested, tests, test_file_path, file_path, props, emits, has_state, framework, variant
| name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | output | tested | tests | test_file_path | file_path | props | emits | has_state | framework | variant | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| simple_select | component | ts | ui | 1.0.0 | impure | SimpleSelect(props: SimpleSelectProps): JSX.Element | Select simplificado que acepta un array plano o agrupado de opciones. Wrapper sobre Select con API declarativa. |
|
false |
|
Componente SimpleSelect que renderiza dropdown simplificado con soporte para opciones planas o agrupadas | false | frontend/functions/ui/simple_select.tsx |
|
false | react |
|
Ejemplo
import { SimpleSelect } from '@fn_library'
// Opciones planas
const options = [
{ value: 'a', label: 'Opcion A' },
{ value: 'b', label: 'Opcion B' },
]
<SimpleSelect value={selected} onValueChange={setSelected} options={options} />
// Opciones agrupadas
const grouped = [
{ group: 'Frutas', items: [{ value: 'apple', label: 'Manzana' }] },
{ group: 'Verduras', items: [{ value: 'carrot', label: 'Zanahoria' }] },
]
<SimpleSelect value={selected} onValueChange={setSelected} options={grouped} />
Notas
- Detecta automaticamente si las opciones son planas o agrupadas via type guard
isGrouped. - Wrapper sobre
Selectdel registry — toda la logica de Base-UI y accesibilidad viene del componente base. - Soporta items deshabilitados individualmente con
disabled: trueen cada opcion.