(options?: RenderOptions)
| 23 | } |
| 24 | |
| 25 | export 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 | |
| 33 | export { color } from './components/design-system/color.js' |
| 34 | export type { Props as BoxProps } from './components/design-system/ThemedBox.js' |