MCPcopy Create free account
hub / github.com/arctic-cli/interface / TabsRoot

Function TabsRoot

packages/ui/src/components/tabs.tsx:18–31  ·  view source on GitHub ↗
(props: TabsProps)

Source from the content-addressed store, hash-verified

16export interface TabsContentProps extends ComponentProps<typeof Kobalte.Content> {}
17
18function TabsRoot(props: TabsProps) {
19 const [split, rest] = splitProps(props, ["class", "classList", "variant"])
20 return (
21 <Kobalte
22 {...rest}
23 data-component="tabs"
24 data-variant={split.variant || "normal"}
25 classList={{
26 ...(split.classList ?? {}),
27 [split.class ?? ""]: !!split.class,
28 }}
29 />
30 )
31}
32
33function TabsList(props: TabsListProps) {
34 const [split, rest] = splitProps(props, ["class", "classList"])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected