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.2 KiB
2.2 KiB
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, framework, props, output, tested, tests, test_file_path, file_path, emits, has_state, variant
| name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | framework | props | output | tested | tests | test_file_path | file_path | emits | has_state | variant | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| indicator | component | ts | ui | 1.0.0 | impure | FnIndicator(props: FnIndicatorProps): JSX.Element | Badge indicador posicionado sobre un elemento hijo. Wrapper sobre Mantine Indicator. |
|
false |
|
react |
|
Elemento hijo con un dot/badge indicador posicionado en una esquina | false | frontend/functions/ui/indicator.tsx | false |
Ejemplo
import { FnIndicator } from '@fn_library'
import { FnActionIcon } from '@fn_library'
import { IconBell } from '@tabler/icons-react'
{/* Dot simple */}
<FnIndicator processing>
<FnActionIcon icon={<IconBell size={18} />} />
</FnIndicator>
{/* Con contador */}
<FnIndicator label={5} size={16} color="blue">
<Avatar src="user.png" />
</FnIndicator>
Notas
Wrapper sobre Mantine Indicator. El processing prop agrega una animacion de pulso al dot. Si se provee label, el indicador se agranda para mostrar contenido. disabled oculta el indicador sin desmontar el componente.