Editable Field Examples

Real-world examples showing how to use data-editable and data-label attributes to create user-friendly templates.

E-commerce Product Showcase

Perfect for showcasing products with customizable information:

<div class="relative w-full h-full bg-gradient-to-br from-blue-600 to-purple-700" data-type="container">
  <!-- Product Image -->
  <div class="absolute top-8 left-8">
    <img data-type="image" 
         data-editable="true"
         data-label="Product Image"
         src="https://example.com/product.jpg" 
         alt="Product" 
         data-animate="fade" 
         data-start="0"
         class="w-32 h-32 rounded-lg" />
  </div>
  
  <!-- Product Information -->
  <div class="absolute top-1/3 left-1/2 -translate-x-1/2 -translate-y-1/2 text-center">
    <h1 data-type="text" 
        data-editable="true"
        data-label="Product Name"
        data-animate="fade" 
        data-start="1"
        class="text-5xl font-bold text-white mb-4">
      iPhone 15 Pro
    </h1>
    
    <p data-type="text" 
       data-editable="true"
       data-label="Product Description"
       data-animate="fade" 
       data-start="1.5"
       class="text-xl text-blue-100 mb-6">
      The most advanced iPhone ever
    </p>
    
    <div class="flex items-center justify-center space-x-4">
      <span data-type="text" 
            data-editable="true"
            data-label="Original Price"
            data-animate="fade" 
            data-start="2"
            class="text-2xl text-gray-300 line-through">
        $1,199
      </span>
      <span data-type="text" 
            data-editable="true"
            data-label="Sale Price"
            data-animate="fade" 
            data-start="2.5"
            class="text-4xl font-bold text-green-400">
        $999
      </span>
    </div>
  </div>
  
  <!-- Statistics -->
  <div class="absolute bottom-8 left-1/2 -translate-x-1/2 flex space-x-12">
    <div class="text-center">
      <div data-type="counter" 
           data-editable="true"
           data-label="Rating"
           data-end-number="4.8" 
           data-decimal="true"
           data-duration-animation="3"
           data-start="3"
           class="text-3xl font-bold text-yellow-400">
      </div>
      <div data-type="text" 
           data-editable="true"
           data-label="Rating Label"
           data-animate="fade" 
           data-start="4"
           class="text-sm text-blue-200">
        Customer Rating
      </div>
    </div>
    
    <div class="text-center">
      <div data-type="counter" 
           data-editable="true"
           data-label="Review Count"
           data-end-number="2500" 
           data-duration-animation="3"
           data-start="3.5"
           class="text-3xl font-bold text-white">
      </div>
      <div data-type="text" 
           data-editable="true"
           data-label="Review Label"
           data-animate="fade" 
           data-start="4.5"
           class="text-sm text-blue-200">
        Reviews
      </div>
    </div>
  </div>
</div>

Company Announcement

Great for company updates, product launches, or important announcements:

Statistics Dashboard

Perfect for showcasing company metrics, achievements, or performance data:

Event Promotion

Ideal for promoting events, webinars, or special occasions:

Social Media Post

Perfect for creating engaging social media content:

Best Practices for Field Labels

1. Use Clear, Descriptive Names

3. Consider Field Order

Fields appear in the template editor in the order they appear in your HTML:

4. Use Consistent Naming Conventions

Template Editor Experience

When users open these templates in the editor, they'll see organized, clearly labeled fields that make customization intuitive and user-friendly. The field labels help users understand exactly what each field controls, making template customization accessible to non-technical users.


These examples demonstrate how to create professional, user-friendly templates that can be easily customized by anyone using the template editor.

Last updated