import { CodeTabs } from '@hanzo/ui'
One tab per language, switching the code shown beneath the strip.
export function Default() {return (<YStack width="100%" maxW={640}><CodeTabs tabs={greet} /></YStack>)}
`defaultTab` opens on Python rather than the first entry.
export function StartingTab() {return (<YStack width="100%" maxW={640}><CodeTabs tabs={greet} defaultTab={2} /></YStack>)}
A fixed syntax palette and a shorter body before it scrolls.
export function Themed() {return (<YStack width="100%" maxW={640}><CodeTabs tabs={greet} theme="dracula" maxHeight={160} /></YStack>)}
The message shown when a `CodeTabs` is given no tabs at all.
export function Empty() {return (<YStack width="100%" maxW={640}><CodeTabs tabs={[]} /></YStack>)}
export interface CodeTabsTab {label: stringcode: stringlanguage?: stringfilename?: string}
export interface CodeTabsProps extends Omit<ComponentProps<typeof Tabs>, 'children' | 'defaultValue' | 'theme' | 'size'> {tabs: CodeTabsTab[]/** Index of the tab shown first, for an uncontrolled `CodeTabs`. */defaultTab?: numbershowLineNumbers?: booleanshowCopyButton?: booleantheme?: CodeBlockTheme | nullsize?: CodeBlockSize | null/** The body's ceiling, in px or any CSS length; past it a tab's body scrolls. */maxHeight?: number | string}