components

Paths to component files that can be dragged into the scene.

Defaults to all jsx and tsx files in your project.

Usage

Pass an array of file globs relative to the config file.

.triplex/config.json
{
  "files": ["../src/**/*.tsx"]
}

Multiple Directories

Target different directories by passing in multiple items.

.triplex/config.json
{
  "files": ["../src/components/**/*.tsx", "../src/scenes/**/*.tsx"]
}

File Extensions

Target files with different file extensions using expansions.

.triplex/config.json
{
  "files": ["../src/**/*.{jsx,tsx}"]
}
Was this page helpful?