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.9 KiB
2.9 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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| select | component | ts | ui | 2.0.0 | impure | Select(props: SelectProps): JSX.Element | Select dropdown con búsqueda, grupos y accesibilidad. Wrapper sobre Mantine Select con API declarativa via prop data. |
|
false |
|
Componente Select que renderiza dropdown searchable con soporte para opciones planas, agrupadas y custom render | false | frontend/functions/ui/select.tsx |
|
|
true | react |
|
Ejemplo
import { Select } from '@fn_library'
// Opciones simples (strings)
<Select
label="Tu librería favorita"
placeholder="Elige una"
data={['React', 'Angular', 'Vue', 'Svelte']}
/>
// Opciones con value/label
<Select
value={selected}
onChange={setSelected}
data={[
{ value: 'react', label: 'React' },
{ value: 'vue', label: 'Vue' },
]}
/>
// Con grupos
<Select
searchable
data={[
{ group: 'Frontend', items: [{ value: 'react', label: 'React' }] },
{ group: 'Backend', items: [{ value: 'node', label: 'Node.js' }] },
]}
/>
Notas
- Wrapper directo sobre
Selectde@mantine/corev9. Todas las props de Mantine Select son válidas. - Soporta
searchablepara filtrar opciones,clearablepara limpiar,allowDeselectpara deseleccionar. - Data acepta:
string[],{ value, label }[], o{ group, items }[]. - Reemplaza al antiguo
select.tsxbasado en NativeSelect con sub-componentes stub.