Files
Egutierrez 5a824c2eee initial: mirror of @fn_library from fn_registry
75 components + DESIGN_SYSTEM.md + sync script.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 19:06:49 +02:00

1.5 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, source_repo, source_license, source_file
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 source_repo source_license source_file
badge component ts ui 1.0.0 impure Badge(props: BadgeProps & VariantProps<typeof badgeVariants>): JSX.Element Badge con 10 variantes semánticas (default, secondary, destructive, outline, ghost, link, success, warning, error, info) y 2 tamaños. Mantine Badge.
badge
status
component
ui
indicator
mantine
false
@mantine/core
Componente Badge que renderiza un indicador visual con 10 variantes semánticas de estado false
frontend/functions/ui/badge.tsx
name type required description
variant 'default' | 'secondary' | 'destructive' | 'outline' | 'ghost' | 'link' | 'success' | 'warning' | 'error' | 'info' false Variante visual
name type required description
size 'default' | 'sm' false Tamaño
false react
default
secondary
destructive
outline
ghost
link
success
warning
error
info
https://gitea-dgg044oo04woo4ggcsws4gk0.organic-machine.com/Bl4cksmith/Frontend_Library MIT frontend/src/components/ui/badge.tsx

Ejemplo

<Badge variant="success">Active</Badge>
<Badge variant="error" size="sm">Error</Badge>

Notas

Usa Mantine Badge internamente. Las 10 variantes se mapean a combinaciones de variant+color de Mantine (filled, light, outline, subtle, transparent).