MCPcopy Index your code
hub / github.com/SyntaxUI/syntaxui / useCodeGroup

Function useCodeGroup

src/components/code/CodeGroup.tsx:23–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 return useContext(CodeGroupContext).inCodeGroup
22}
23export function useCodeGroup() {
24 return useContext(CodeGroupContext)
25}
26
27/**
28 * This is a code group component that accepts `children` which should be a `RawCode` or a `Code` component and an optional `title: string`.

Callers 1

CodeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected