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

Function CollapsibleRoot

packages/ui/src/components/collapsible.tsx:11–24  ·  view source on GitHub ↗
(props: CollapsibleProps)

Source from the content-addressed store, hash-verified

9}
10
11function CollapsibleRoot(props: CollapsibleProps) {
12 const [local, others] = splitProps(props, ["class", "classList", "variant"])
13 return (
14 <Kobalte
15 data-component="collapsible"
16 data-variant={local.variant || "normal"}
17 classList={{
18 ...(local.classList ?? {}),
19 [local.class ?? ""]: !!local.class,
20 }}
21 {...others}
22 />
23 )
24}
25
26function CollapsibleTrigger(props: ComponentProps<typeof Kobalte.Trigger>) {
27 return <Kobalte.Trigger data-slot="collapsible-trigger" {...props} />

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected