// AUTO-GENERATED by scripts/generate-wrappers.mjs — do not edit by hand. // Source: packages/core/manifest.json (component "tabs"). import type { ElementType, ReactNode } from 'react'; import { Tabs as TabsController, type TabsOptions } from '@42/core/tabs'; import { C42 } from '../C42'; const DEFAULT_HTML: string | null = "
\n \n \n
\n
Panel A
\n
Panel B
"; export interface TabsProps extends Partial { /** Element/tag rendered as the controller root. Defaults to `"div"`. */ as?: ElementType; className?: string; children?: ReactNode; /** Fired on `tabs:change` — detail: `{ value: string }` */ onChange?: (detail: { value: string }, event: CustomEvent) => void; /** Extra props are forwarded to the rendered `
` element. */ [key: string]: unknown; } export function Tabs(props: TabsProps) { const { as, className, children, onChange, defaultValue, orientation, activationMode, ...rest } = props; const options = { defaultValue, orientation, activationMode } as TabsOptions; return ( {children as ReactNode} ); }