Kombai can index the component library used in the workspace. You can select up to 10 folders for indexing. Kombai will index the components used in these folders. It will then reuse the indexed components while generating code.

How to index component library

Follow the steps below to index your component library:
  1. Click icon in Kombai’s input box.
  2. Now, click icon on right of Tech stack used.
  3. Go to Components.
  4. Click Enable on the side of Index component library.
  5. Select the folders that you want to scan for the components.
  6. Click Start Indexing for Kombai to start indexing the components.
  7. To view the scanned components, turn on the toggle on side of View indexed components.

How to delete indexed Components

Follow the steps below to delete indexed components:
  1. Click icon in Kombai’s input box.
  2. Now, click icon on right of Tech stack used.
  3. Go to Components.
  4. Click Delete index below View indexed components.

When to index component library

Kombai recommends indexing the component library in four cases:
  1. When you are using Kombai for the first time in a workspace.
  2. When an indexed component is updated.
  3. When a new component is added to the indexed folder.
  4. When a new component folder is created.