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.6 KiB
2.6 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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| rating | component | ts | ui | 1.0.0 | impure | Rating(props: RatingProps): JSX.Element | Selector de calificación con estrellas, fracciones y símbolos custom. Wrapper sobre Mantine Rating. |
|
false |
|
Componente Rating que renderiza un selector de estrellas interactivo con soporte para fracciones, modo solo lectura y símbolos personalizados | false | frontend/functions/ui/rating.tsx |
|
|
true | react |
|
Ejemplo
import { Rating } from '@fn_library'
// Rating básico de 5 estrellas
<Rating value={rating} onChange={setRating} />
// Con medias estrellas
<Rating
fractions={2}
value={3.5}
onChange={setRating}
/>
// Solo lectura para mostrar calificación
<Rating value={4.2} fractions={10} readOnly />
// Con más estrellas y color custom
<Rating
count={10}
value={score}
onChange={setScore}
color="yellow"
size="lg"
/>
Notas
- Wrapper directo sobre
Ratingde@mantine/corev9. Todas las props de Mantine Rating son válidas. fractionspermite selección granular: 2 = mitades (0.5, 1, 1.5...), 4 = cuartos (0.25, 0.5...).- En modo
readOnlyno disparaonChangey el cursor es el por defecto. - Accesible via teclado con soporte para lectores de pantalla.