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