MCPcopy Index your code
hub / github.com/codeaashu/claude-code / createRoot

Function createRoot

src/ink.ts:25–31  ·  view source on GitHub ↗
(options?: RenderOptions)

Source from the content-addressed store, hash-verified

23}
24
25export async function createRoot(options?: RenderOptions): Promise<Root> {
26 const root = await inkCreateRoot(options)
27 return {
28 ...root,
29 render: node => root.render(withTheme(node)),
30 }
31}
32
33export { color } from './components/design-system/color.js'
34export type { Props as BoxProps } from './components/design-system/ThemedBox.js'

Callers 1

runFunction · 0.70

Calls 2

withThemeFunction · 0.85
renderMethod · 0.45

Tested by

no test coverage detected