Libraries
This page helps you use the components and variables of another .brsh file.
Example: your team keeps all buttons in one file. You link that file as a library. You use the buttons in many designs.
How to add a library
- Open the Components panel on the left.
- Open the Libraries section.
- Click Add library.
- Choose a
.brshfile.
The library shows its name and how many components it has. Its components appear in the panel. Drag them onto the canvas as usual.
The panel remembers which sections are open or folded.
How to remove a library
- Open the Libraries section.
- Click the remove button (X) next to the library.
Library updates
When the library changes, your instances follow. You do not need to do anything.
If a library is missing
The panel says "Not found" and shows the path. Instances keep their overrides. Brsh saves the overrides back. Link the file again to fix this.
If your file has no saved path yet, paths become relative when you save.
Notes
- Libraries load only as
.brshfiles. If a link names a.penfile, Brsh loads the.brshfile with the same name. - A library can also give you variables. See Variables and themes.
- A Lottie animation inside a component instance shows only its still frame in Play. It plays only on a layer of its own.