This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Vincenzo Petito
Posted Dec 02 - Read on Facebook

Hi guys, is it possible in Framer to create a reusable component library? Also a module with some premade component that i can call faster instead of copy/paste the code every time? Thank's

8 Comments

Giovanni Caruso

Yes. I've attempted something like this using modules but it was more like an experiment. Only side effects I remember using module is that the system doesn't see the new components as layer (so no autocode or drag&drop to fix position).

Giovanni Caruso

Look at this example by Jonathan Ravasz (function to create a dropdown component): http://share.framerjs.com/3u38vt1lboyi/

Giovanni Caruso

That said, I'd love to have a library of pre-made reusable UI components (the sliderComponent is an example) Koen Bok #xmas #wishlist

Vincenzo Petito

Why when i call the custom element it gives me an error (Can's find variable: Myelement)?
Here's my code:
kui = require "kui"
test = new Myelement

Attached the module code!

Giovanni Caruso

{Myelement} = require "kui"

test = new Myelement

Vincenzo Petito

Thank's! Inside Framer was ok, but importing from the module i had the error! Now is fine!

Jordan Robert Dobson

Most definitely possible. It's pretty much the only way I work now.

Dave Crow
Read the entire post on Facebook