Where to find it
- On the Context Graphs page:: open Settings and select the Context Graphs tab. When a Context Graph finishes indexing, its card shows a Component library section.
- In the Canvas Gallery: a Component library entry appears beside the create tile, showing the components drawn across all of your libraries.
- From a design: if a design uses an indexed component, select the component and choose Go to component to open its drawing.
Turn off automatic drawing
By default, Kombai draws a Component Library while indexing the Context Graphs. To index without drawing the Component Library:- Open Settings.
- Select the Context Graphs tab.
- Turn off Draw components while indexing.
Draw, redraw, and resume
A finished Context Graph’s card offers these actions, depending on the library’s state:- Draw components: draws the library for a Context Graph indexed with drawing turned off, or indexed before the Component Library existed.
- Resume: continues a run that stopped partway, for example after a lost connection or running out of credits. It draws only the missing components. If nothing was drawn yet, the button reads Try again.
- Redraw changed: redraws components whose code changed since they were drawn.
- Restore N deleted: draws again the components you deleted from the library.
- Open library: opens the Component library page.
- Stop: stops a library that’s drawing.
Kombai draws every component a Context Graph finds. You can’t choose which components get drawn.
Manage a library
Open a library with Open library on the Context Graph’s card, or from its entry in the Canvas Gallery.- View a component’s source: select the drawing and choose View code. This opens the file the component was drawn from, including files in an indexed NPM package or Storybook source.
- Delete a drawing: select it and press
Delete, or right-click it and choose Delete. Undo brings it back. After that, use Restore N deleted on the Context Graph’s card. - Code changed: Kombai marks the drawing as changed. Use Redraw changed on the Context Graph’s card to update it.
- Code removed: the drawing stays in the library under Removed until you delete it or the component returns to the code.
- File moved: Kombai follows the move and keeps the drawing linked.
Library canvases hold only component drawings. They don’t appear in the Canvas Gallery’s canvas list or search.