Strapi Custom Components Development

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Showing 1 of 1 servicesAll 2065 services
Strapi Custom Components Development
Simple
from 1 business day to 3 business days
FAQ
Our competencies:
Development stages
Latest works
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1170
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1094
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    830
  • image_crm_chasseurs_493_0.webp
    CRM development for Chasseurs
    879
  • image_website-sbh_0.png
    Website development for SBH Partners
    999
  • image_website-_0.png
    Website development for Red Pear
    453

Custom Components in Strapi

Strapi components are reusable groups of fields. A component can be nested in a collection type, single type, or another component. It supports two modes: single (group of fields) and repeatable (array of objects).

Component Structure

src/components/
├── shared/          # Component category
│   ├── seo.json
│   ├── button.json
│   └── link.json
├── sections/
│   ├── hero.json
│   ├── text-block.json
│   └── gallery.json
└── product/
    ├── spec.json
    └── variant.json

Button Component (CTA)

// src/components/shared/button.json
{
  "collectionName": "components_shared_buttons",
  "info": { "displayName": "Button", "icon": "cursor" },
  "attributes": {
    "label": { "type": "string", "required": true },
    "url": { "type": "string" },
    "page": { "type": "relation", "relation": "oneToOne", "target": "api::page.page" },
    "variant": {
      "type": "enumeration",
      "enum": ["primary", "secondary", "outline"],
      "default": "primary"
    },
    "openInNewTab": { "type": "boolean", "default": false }
  }
}

Hero Section

// src/components/sections/hero.json
{
  "collectionName": "components_sections_heroes",
  "info": { "displayName": "Hero Section" },
  "attributes": {
    "title": { "type": "string", "required": true },
    "subtitle": { "type": "text" },
    "background": { "type": "media", "multiple": false, "allowedTypes": ["images"] },
    "cta": { "type": "component", "component": "shared.button", "repeatable": false }
  }
}

Product Spec — Repeatable

// src/components/product/spec.json
{
  "collectionName": "components_product_specs",
  "info": { "displayName": "Specification" },
  "attributes": {
    "name": { "type": "string", "required": true },
    "value": { "type": "string", "required": true },
    "unit": { "type": "string" }
  }
}

Usage in product schema:

"specs": {
  "type": "component",
  "repeatable": true,
  "component": "product.spec",
  "min": 0,
  "max": 20
}

Dynamic Zone — Component Selection on the Fly

// In page schema:
"body": {
  "type": "dynamiczone",
  "components": [
    "sections.hero",
    "sections.text-block",
    "sections.gallery",
    "sections.cta-banner"
  ]
}

API request with dynamic zone:

GET /api/pages/about?populate[body][populate]=*

Rendering Dynamic Zone in Next.js:

const sectionComponents = {
  'sections.hero': HeroSection,
  'sections.text-block': TextBlock,
  'sections.gallery': Gallery,
  'sections.cta-banner': CTABanner,
}

export const DynamicZone = ({ body }: { body: any[] }) => {
  return (
    <>
      {body.map((section, i) => {
        const Component = sectionComponents[section.__component]
        if (!Component) return null
        return <Component key={i} {...section} />
      })}
    </>
  )
}

Timeline

Creating a set of components for a page builder (6–10 components) takes 1–2 days.