Skip to content

SourceFile context

const SourceFileContext: ComponentContext<SourceFileContext>

Accessor

const myContext = useContext(SourceFileContext);

Context interface

filetypestring
pathstring
referenceoptionalComponentDefinition<{ refkey: Refkey; }>