Tutorial: Build Custom Components using the Cursor AI Code Editor

Hello Again,

In this weeks video tutorial I use Cursor - a fancy new AI code editor to help me create a table that uses data from a JSON file. I also ask Cursor to generate some Tailwind code from a website screenshot I upload to it.

I take all this code and use it in Elements to create some Custom Components!

Using ChatGPT or Cursor allows anyone to easily get started creating custom components in Elements. Watch the Tutorial video below to see how all this works in practice.

Get the Project

Download the AI Card Project built in today’s demo. This is an Elements link and will open up directly in your copy of Elements :tada:

Feedback

Let me know what you thought of the tutorial, was it helpful? what else would you like to see covered? Let me know in the comments below.

Cheers,
Dan & Team Realmac

3 Likes

powerful but relatively simple, excellent

Well, maybe for you…ha, ha. I got into using RW so I didn’t have to do any coding, yet it seems many of these new tutorials are about coding? Go figure…

2 Likes

I think the tutorials are just to show what is possible, especially AI, don’t think the no code to build a website is still valid
assume there will be many tutorials with no code

exactly my thoughts

Yes, it’s just to show what’s possible for those interested in the more advanced features.

You’ll still be able to build an entire website without knowing a line code.

If you want better results for using Cursor to generate the full custom Component, look into Cursors ability to store a template of documents and examples to serve as a base for its generated code. It can include Template, Styles, Javascript, Hooks, and Properties. And it can give you each of those ready for the copy paste.

As a corollary, using your instruction documents, you can stope it from give you the page wrapper code that you don’t want when you are building Elements Components.

I’m using Xcode along with Cursor (Claude/ChatGPT) to build and text applications. I point both to the same Github or local resource folder. Cursor is generating the code and Xcode is building/testing the code. I was wondering if there is a way to tie Cursor to Elements custom Components to Cursor–obviously with Elements replacing Xcode.

1 Like

Yes, that’s a great idea. I’m going to give it ago and see how much it can do…

1 Like

Very cool!

Careful…might cause another YT video! :slight_smile:

2 Likes

I think I might do a few no-code tutorials next :stuck_out_tongue_closed_eyes:

1 Like

That’s fine and dandy if you’re creating your own table of values. But I need to use a spreadsheet that’s extremely large and the data comes from somebody else. If I use this, I’m going to have to go in and replace every single little bit of data with an individual value and there will be thousands of them. That’s crazy. We need something that will pull in the data of a CSV spreadsheet file. It’s been done several times under the stack program. So how hard can it be?

Hi @SaturnWeb,

I am trying to be helpful here. :slight_smile:

We have tried (and failed so far) to get you to provide more detail of your requirements in this thread: CSV Spreadsheet.

@trinube asked you to provide more detail in this post: https://forums.realmacsoftware.com/t/csv-spreadsheet/44715/29

Once you do that, with maybe a link to your webpage, we will be able to see what can be done. :slight_smile:

It’s worth remembering that Elements is still in development, and is not finished product so all the solutions you need won’t be available just yet…

However, I’m 100% confident someone here will be able produce an awesome CSV component that would work for you - Especially when Elements hits 1.0 and beyond :muscle:

I don’t know how I can be more clear. I said 20 columns with over 100 rows. I don’t think I can get any clear than that. It seems like it would’ve been easier to develop rapid Weaver where you could still include the use of stacks. Then people wouldn’t have to throw away 1000s of dollars in stacks they invested in. The wysiwig itself was enough for me to buy it. Isn’t it really about the customer? I bet if you asked all the customers who purchased if they wanted to be able to use Rapid Weaver elements and stacks, I bet they would say yes.

Thanks for the clarification. :slight_smile:

I have already shown you an example of that i.e. a CSV file with a lot of columns and rows being displayed by an Elements Custom Component; see this post: https://forums.realmacsoftware.com/t/csv-spreadsheet/44715/22

Why are you throwing away 1000’s of dollars? You can carry on using Rapid Weaver Classic. :thinking:

This thread was (I thought, maybe mistakenly?) about how to read CSV files in Elements and display a table. I have shown an example of that being able to be done. Obviously it will need to wait until we get nearer to the Elements 1.0 release to get more finely honed as a distributable Custom Component.

2 Likes