Files
fn_registry/frontend/functions/ui/tabs.md
T
egutierrez 87e8f33b01 fix: corregir lang y file_path en frontmatter de funciones existentes
Normaliza lang: typescript → ts en funciones frontend y corrige file_path de functions/infra/ → functions/browser/ en funciones CDP. Actualiza referencias cn_typescript_core → cn_ts_core.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 03:23:20 +02:00

51 lines
1.3 KiB
Markdown

---
name: tabs
kind: component
lang: ts
domain: ui
version: "1.0.0"
purity: impure
signature: "Tabs(props: TabsRootProps): JSX.Element"
description: "Sistema de tabs con orientación horizontal/vertical, variantes default y line, y soporte para iconos. Base-UI primitive."
tags: [tabs, navigation, component, ui, interactive]
uses_functions: [cn_ts_core]
uses_types: []
returns: []
returns_optional: false
error_type: ""
imports: ["@base-ui/react", class-variance-authority]
tested: false
tests: []
test_file_path: ""
file_path: "frontend/functions/ui/tabs.tsx"
props:
- name: orientation
type: "'horizontal' | 'vertical'"
required: false
description: "Orientación de los tabs"
- name: variant
type: "'default' | 'line'"
required: false
description: "Estilo visual de la lista"
emits: [onValueChange]
has_state: true
framework: react
variant: [default, line]
source_repo: "https://gitea-dgg044oo04woo4ggcsws4gk0.organic-machine.com/Bl4cksmith/Frontend_Library"
source_license: "MIT"
source_file: "frontend/src/components/ui/tabs.tsx"
---
## Ejemplo
```tsx
<Tabs defaultValue="general">
<TabsList>
<TabsTrigger value="general">General</TabsTrigger>
<TabsTrigger value="security">Security</TabsTrigger>
</TabsList>
<TabsContent value="general">...</TabsContent>
<TabsContent value="security">...</TabsContent>
</Tabs>
```