Your Own Webflow Component Library is EASY???

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ส.ค. 2024
  • Here's a quick example of the techniques I used to build my component library.
    // CLONE IT
    👉 try.webflow.com/cloneable-is-...
    // FREE resources
    ✂️ Code Snippet Library: code-snippets-sign-up.webflow...
    🤝 CSS Nobody Told You About: www.webbae.net/css-nobody-tol...
    🚗 Roadmap to learn Webflow: www.webbae.net/roadmap-to-lea...
    // Premium content
    🤝 Patreon: / webbae
    🕸️ Advanced Webflow Course (201): www.webbae.net/product/webflo...
    // Discounts
    🎢 Get 10% GSAP: WEBBAE10
    ♣️ Creative Coding Club (My favorite GSAP lessons): www.creativecodingclub.com/bu...
    // Connect
    🙋‍♀️ Join the Discord: / discord
    🐥 Follow Me! / webisbae
    00:00 Intro, Demo, Theory
    01:48 Webflow Project Overview
    03:45 Writing the code to copy JSON
    07:52 Adding Components via CMS
    09:45 Wrap Up and Shilling My New Patreon
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 39

  • @heatherliu6856
    @heatherliu6856 ปีที่แล้ว +2

    Never knew there was so much behind copying and pasting! Easy and clear explanation, JSON king 👑

  • @webflowbangla
    @webflowbangla ปีที่แล้ว

    Fantastic. Thanks for sharing, Keegan.

  • @WebGuyMike
    @WebGuyMike ปีที่แล้ว +1

    This is great! Thanks so much for sharing. I definitely love the component libraries out there but being able to make your own can be empowering with your own styles

    • @webbae
      @webbae  ปีที่แล้ว +1

      I think it’s a natural step for anyone building a lot in Webflow. Once you have built the same component 20 times it makes sense to have your own repository (and share with other if you want!)

  • @agencesaint-laurent5662
    @agencesaint-laurent5662 ปีที่แล้ว +1

    This is cool - Thanks !

  • @allisonkeesling5552
    @allisonkeesling5552 ปีที่แล้ว +5

    YASSS WEB BAE

  • @pablogubelin2521
    @pablogubelin2521 ปีที่แล้ว +1

    Why you are so genius? hehe thanks again!

  • @bullz3718
    @bullz3718 ปีที่แล้ว +1

    Amazing walkthrough!

    • @webbae
      @webbae  ปีที่แล้ว

      Thanks @Bullz - are you making your own component lib?

    • @bullz3718
      @bullz3718 ปีที่แล้ว +1

      @@webbae We are thinking of making one at the agency im currently working for. Your video has helped us to realise that is is more than possible. Initially thought it would be a mammoth of a task.

    • @webbae
      @webbae  ปีที่แล้ว

      @@bullz3718 glad it helped - I have a more in depth look at how I run my production component library with GitHub in my Patreon as well 🌶️

  • @j.espinosa
    @j.espinosa 8 วันที่ผ่านมา +1

    Very cool! One question though, is it possible to copy that component and also get the linked variables? Imagine that this specific component has some variables in it. Is there a way to copy and paste while keeping the variables at the same time?

    • @webbae
      @webbae  7 วันที่ผ่านมา

      Hey J - unfortunately the copy paste api doesn’t seem to carry over variables (or components)

  • @kaicex
    @kaicex 2 หลายเดือนก่อน +1

    Fantastic video. How to hide a JSON in html. I ve seen your library . There, I couldn't find json code in Html) How to do such thing with webflow CMS? is that possible?

    • @webbae
      @webbae  2 หลายเดือนก่อน

      You could just hide it with display none if you’re pulling from the CMS or you could create an API to fetch it dynamically.

  • @erickmuller
    @erickmuller ปีที่แล้ว +1

    By the way, this is so awesome. I learned something about how copy/pasting webflow works. Thanks!
    Do you think there's a way to do this in airtable? Like have a way to store it there and copy it to your clipboard? I ask because it would be easier for me to store, plus I'm already paying for it and I wouldn't have to pay webflow if I get past 50 cms items

    • @webbae
      @webbae  ปีที่แล้ว

      You can definitely do that. My Patreon has a complete walkthrough of how I built out my library, which pulls items from Github. You could easily use Javascript's fetch API to get the data from Airtable instead. Their API is documented really well too. www.patreon.com/posts/component-deep-74094764?Link&

  • @stefansavanovic3406
    @stefansavanovic3406 ปีที่แล้ว

    Hey man, awesome work! I have just recently started building my component library with a similar approach. But I was wondering did you find a way to manage class renaming if that is a thing you are even facing? Since I have a style guide the classes that get pasted are renamed even do they have the exact same styling, so I'm trying to find a way around that. Thanks 🙏

    • @webbae
      @webbae  ปีที่แล้ว

      I don't have a great solution for that ... yet. From what I'm hearing in the community this is a major pain point for the community. I think Relume is releasing something that will fix it and I've heard rumors that others are working on it too... But sorry I don't have anything at the moment.

    • @stefansavanovic3406
      @stefansavanovic3406 ปีที่แล้ว

      @@webbae No worries man, I too am struggling with that one ever since I started building my library. I have also seen that Relume has launched its extension in beta, it looks good but still can't test it.

    • @silvansoeters
      @silvansoeters ปีที่แล้ว

      @@webbae Hey I was wondering if you managed to come up with a solution for this (class duplication/renaming) now? I'm very eager to learn how to build a simple component library myself (been using Relume for a few months now), would definitely become a Patron to access the content if it's perhaps hidden somewhere for public now. Many thanks in advance. I'm really enjoying your content 🙂

  • @adriangordan
    @adriangordan ปีที่แล้ว +1

    so you basically showed us how relume guys build their library :)

    • @webbae
      @webbae  ปีที่แล้ว

      This will get you started but if you want to make something that's more maintainable, shows live previews, and is a full-fledged SaaS business you'll find there's a lot more to it :).

  • @bmhoops1
    @bmhoops1 10 หลายเดือนก่อน +1

    For some reason it wont let me connect the text block to the custom field (JSON) - any idea why that might be?

    • @webbae
      @webbae  10 หลายเดือนก่อน

      Not sure. Feel free to hop in discord and share a preview linkz

    • @bmhoops1
      @bmhoops1 10 หลายเดือนก่อน

      @@webbae I was able to figure it out! thank you!!

  • @erickmuller
    @erickmuller ปีที่แล้ว

    Hey, I used that clipboard inspector to get the json data. To test it I copied that json and try to paste it to webflow again. It didn't work. It said "couldn't read clipboard data". Am I missing a step?
    Edit: I'm guessing I need to convert it to the right data type, application/json.

    • @webbae
      @webbae  ปีที่แล้ว +1

      When you copy from that clipboard inspector it copies as plain text. Webflow expects application/json which is why you are getting that error. To fix either copy Webflow to Webflow or hack a script from my code and run it in console on the clipboard viewer website.

  • @consti_monsti
    @consti_monsti ปีที่แล้ว +1

    How do you export the component to html with all the styles?

    • @webbae
      @webbae  ปีที่แล้ว

      I just copy/paste the html from inspector in chrome.

  • @qdusama3443
    @qdusama3443 11 หลายเดือนก่อน +1

    how can we make this make this work if we have multiple copy-buttons for multiple components in a single page ?

    • @webbae
      @webbae  11 หลายเดือนก่อน +1

      yes - try using a loop or a global event listener.

  • @reecenward
    @reecenward ปีที่แล้ว +1

    how do i host the sandbox project and get the link to the right file

    • @webbae
      @webbae  ปีที่แล้ว +1

      They are automatically hosted for static sandboxes just grab the link form the preview box and add your filename to the end e.g. index.js.
      I go over it in this video: th-cam.com/video/gq0jw3_d5Ig/w-d-xo.html

    • @reecenward
      @reecenward ปีที่แล้ว

      thx@@webbae

  • @and2good2
    @and2good2 ปีที่แล้ว

    Is it possible to make something similar where the interactions copies over as well?

    • @webbae
      @webbae  ปีที่แล้ว +1

      The interactions will copy over with this example too. Be sure to set the trigger to “class” and you should be good to go.

    • @webbae
      @webbae  ปีที่แล้ว +1

      If you inspect the json there is an “ix” field or something that has the name of the interaction.

    • @and2good2
      @and2good2 ปีที่แล้ว

      @@webbae Perfect, thanks! And also thanks for the webflow content, it is really helpfull! :)