Skip to main content

MCMS Components

mcms_components defines the reusable, declarative components that make up an MCMS site. Components describe structure, composition, values, and behaviour; they do not render HTML or retrieve application data themselves.

Responsibilities

  • Define component schemas and runtime component definitions.
  • Support primitive components such as text, image, button, link, and icon.
  • Support structural components such as container, grid, row, column, stack, and section.
  • Represent component composition consistently, including page-root structures.
  • Declare component values as literals or data bindings.
  • Declare component styling configuration and variants without owning visual presentation.
  • Resolve component definitions into the runtime representation consumed by mcms_render.

Components may be supplied by built-in Python definitions, JSON definitions, database-backed definitions, or future external providers. Built-in and runtime-defined components should be treated consistently by the resolution pipeline.

Architecture

Component definitions
        |
        v
Component resolution
        |
        v
RenderTree / RenderNode
        |
        v
mcms_render
        |
        v
Output

A component definition is not itself a rendered element. The renderer operates on the resolved render tree, not on component registries or source definitions.

Component categories

Category Purpose Examples
Content Represents an individual element or simple UI element often in reference to text and text layout Text, Code, List, Link, Break
Structure Defines structural components that have specific tasks Article, Badge, Header, Section, Main, Table
Layout Defines composition and accepts child components Column, Container, Empty, Grid, Stack
Form Refers to any form elements especially for accepting input from the user Form, Button, FieldSet, Input, Label
Media Refers to any media form such as audio, images and video Image, Audio, Video
Navigation Refers Pagination navigation tools NavigationButton, CurrentPage
Popup Refers to any elements that appear on condition of events such as clicks Dialog, Alert, Toast, Modal

Values and data binding

Component values may be static or data-driven. The component architecture supports literal values and declarative bindings. Components declare the values they need; they do not query Django models, databases, APIs, or other providers directly.

The current data-binding architecture is implemented by mcms_data. See MCMS Data.

Styling

Components define structure and behaviour, not visual design decisions. Colours, typography, spacing, effects, themes, and CSS generation belong to mcms_design.

A component may expose styling configuration or variants, but visual definitions are resolved by the design system.

Architectural integrations

Package Relationship
mcms_core Shared infrastructure, including the common registry convention
mcms_design Resolves component and instance presentation
mcms_content Provides definitions for Field Types

These are architectural relationships from the ADRs. Confirm the actual runtime dependency declarations in the package pyproject.toml files.

Application configuration

This package contains a component registry in its app settings which stores all active and usable components.

Dependencies

Architectural integrations

See the integration table above. In particular, component definitions must remain independent of data retrieval and HTML rendering.

Python distribution dependencies

All MCMS Packages rely on django

Development

Run the package tests from the repository root using the project's configured test command:

uv run pytest packages/mcms-components/tests

Use the repository's configured Ruff and mypy checks where applicable.

Metadata

Release files for mcms-components 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for mcms-components 0.1.0
File Interpreter ABI Platform Actions
mcms_components-0.1.0-py3-none-any.whl Python 3 none any Details for mcms_components-0.1.0-py3-none-any.whl

Release files / mcms_components-0.1.0-py3-none-any.whl

Download URL mcms_components-0.1.0-py3-none-any.whl
Size 58.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6cfbe66772f98c878f7e03850523fca5c5bdb273dfb9fba10288e9bb14a9fd75
BLAKE2b-256 checksum
How to use checksums
5f58a33728458fcc677ccbe3f5c922e1dc6e7d4947070cebf5d2ea43673b729d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"21.3","id":"virginia","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for mcms-components 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page