All pages
Powered by GitBook
1 of 6

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

AI Custom Components

Create unique components with simple prompts

With Jet Admin’s AI Custom Component, you can design new UI components tailored exactly to your needs — no coding required. Just describe what you want in a chat format, and AI will generate custom components directly from your data. You can create anything from interactive sliders, maps, toggles, image carousels, and more.

Expect to iterate: you may need to refine your prompts or chat with the AI a few times to get the exact result you envision.

Enhance Your Prompts with AI Assistance

Use Jet Admin’s Enhance Prompting feature to automatically improve your prompt before sending it to AI. Get clearer, more detailed instructions to generate better, more accurate custom components — faster and with less manual tweaking.

Enhance Your Prompts with AI Assistance

Enhancing Your Prompts with Images

Want to reference an image? Click the image icon inside the prompt box to upload a file from your device. Make sure to also include a written prompt describing how you want the image to influence your component — this helps AI interpret your intent correctly.

Auto-Generate Parameters and Actions

Jet Admin’s AI can automatically create the parameters and actions your custom component needs, based on your prompt. This means faster setup, smarter data binding, and ready-to-use interactions without manually configuring each field or action.

Edit Your Custom Component Code with the JS Editor

Use Jet Admin’s built-in JS Editor to customize every aspect of your custom component. Fine-tune the design, behavior, and interactions directly within your app — with full control over the code.

Import and Iterate on Your Existing Components

Easily import components you’ve already built and continue refining them with Jet Admin’s AI and JS Editor. Update designs, adjust logic, and enhance functionality — without starting from scratch.

Enhancing Your Prompts with Images

Sometimes words aren’t enough to explain your idea. Enhance with Image feature lets you upload an image along with your text prompt, helping the AI better understand what you want to build.

How to Add an Image to Your Prompt

  1. Write a Short Description Start by typing a simple explanation of what you want to create. Example:

    "A dashboard card for weekly sales numbers."

  2. Click the Image Upload Icon Inside the prompt box, click the Image icon.

    • Select an image file (JPG, PNG, or GIF) from your device.

    • It will attach directly to your prompt.

  3. Add a Text Description for the Image After uploading, describe how the image should influence the component. Example:

    "Use the uploaded image as a background banner. Place the sales text data on top, left-aligned."

  4. Send Your Enhanced Prompt Submit your prompt with the attached image and description to the AI builder.

📋 Best Practices

Always Add a Text Description: Don’t rely on the image alone — explain what matters most.

Focus on Important Details: Mention layout, colors, or key elements if they are important.

Use Clear, High-Quality Images: Avoid cluttered or blurry files for better results.

Enhancing Your Prompts with Images
Auto-Generate Parameters and Actions
Edit Your Custom Code with the Custom Component Builder
Import and Iterate on Your Existing Components

Auto-Generate Parameters and Actions

Jet Admin’s AI can automatically generate the parameters and actions your custom component needs — based entirely on your prompt.

How It Works

  1. Write a Clear Prompt Describe what your component should do, including any fields or interactions. Example:

    "A user profile card showing name, email, and a button to send a message."

  2. Let the AI Auto-Generate After processing your prompt, Jet Admin automatically:

    • Creates parameters (e.g., name, email, profileImage)

    • Adds actions (e.g., sendMessage function on button click)

  3. Review and Customize Once generated:

    • Review the parameters and actions.

    • Adjust or rename them if needed.

📋 Best Practices

Mention Actions Clearly in Your Prompt: If you want something clickable or interactive, make sure to say it.

Use Descriptive Names: Good field names (like userName instead of just text) help with clean, understandable code.

Enhance Your Prompts with AI Assistance

Jet Admin’s Enhance Prompting feature helps you create better prompts, faster. Simply describe what you want to build, click Enhance, and get a complete, detailed version ready for the AI builder.

How to Use Enhance Prompting

  1. Describe Your Component Write a short, clear description. Example:

    "I want a product card with title, description and price."

  2. Click the Enhance Icon Hit the Enhance (🪄) icon next to the Attach images icon. Jet Admin rewrites your description into a detailed, build-ready prompt.

  3. Review and Edit (Optional) Check the enhanced prompt:

    • Adjust or expand if needed.

    • You can edit freely before submitting.

  4. Send to AI Builder When ready, submit the enhanced prompt to start building!

📋 Best Practices

Be Specific: Mention important elements like layout type (card, form) or fields (title, price, image).

Keep It Simple: Write like you're explaining to a friend — no technical jargon needed.

Clarify Special Needs: If you need dynamic actions (e.g., click to open a modal), mention it in your prompt.

Check and Test: Always preview your generated actions to ensure they behave as expected.

Edit Your Custom Code with the Custom Component Builder

Jet Admin’s Custom Component Builder gives you full control over your component’s design, behavior, and interactions — all inside your app.

How to Edit Your Custom Component

  1. Turn on Dev Mode Click the Dev button inside your component to enable Developer Mode. This unlocks full access to:

    • Layout (JSX)

    • Styles (CSS)

    • Logic (JavaScript)

  2. Review and Edit the Structure Manually adjust how your component is built:

    • Move elements

    • Update styles

    • Write new functions or events

  3. Use AI Assistance to Improve Your Component After manual edits:

    • Ask AI to optimize layouts

    • Auto-generate actions

    • Improve logic or add features

  4. Save and Preview Changes Instantly see your updates inside the app after saving.

📋 Best Practices

Keep Code Structured: Use clear names and modular design for easier updates.

Test After Edits: Preview frequently to ensure smooth behavior.

Import and Iterate on Your Existing Components

Already have a component built outside of Jet Admin? Easily import your existing code, edit it inside the builder, and enhance it with AI Assistance — no need to start from scratch.

How to Upload and Improve Your Components

  1. Turn on Dev Mode First

Click the Dev button inside your component to enable Developer Mode.

  • Only after turning on Dev Mode, you’ll see these options:

    • Upload Source Files (upload individual files)

    • Ask AI (generate missing files)

    • Extract .zip (upload and extract full project archives)

  • Upload Your Files or Extract a Project

    • Upload your JSX, JavaScript, and CSS files individually. OR

    • Upload a .zip file containing your full component structure (Jet Admin will extract it automatically).

  • Use AI Assistance to Enhance the Uploaded Component

    • After uploading, you can ask AI to:

      • Fix broken layouts

      • Generate missing actions or params

      • Improve design or logic

  • Edit Freely in Dev Mode

    • Edit files directly (layouts, styles, logic) to fine-tune your component.

  • Download Your Component Files (Optional)

    • Save and download your complete, improved component whenever needed.

  • Save and Preview Changes Instantly

    • Instantly preview how your updated component looks and behaves inside your app.

  • 📋 Best Practices

    Prepare a Clean Project Structure: Especially important if you are uploading a .zip — keep it organized.

    Use Consistent Naming: Makes it easier for AI and for you to work across multiple files.

    Check Preview Frequently: Always preview after uploading or editing major files.