Component

A Component is the root of the contract: startupbuilder.dev defines each one, and mdxui documents how it renders and which export draws it.

startupbuilder.dev defines the Component: "A Component is a named block of a Page, such as a hero, a pricing table, or a form, filled from records through typed props." A Component never takes a className.

What mdxui renders

ComponentDefined atRendered hereExport
Pagestartupbuilder.devPage@mdxui/site#PageSchema
SectionThe Component's region, sectionSection@mdxui/site#SectionSchema
Section typeThe Component's name, such as PricingSection types@mdxui/site#BlockSchema
Themestartupbuilder.devThe Theme contract@mdxui/themes#compileTheme
Sitestartupbuilder.devSiteUnpublished
Templatestartupbuilder.devTemplateThe template field only
The Product record—The Product recordUnpublished
App, View, Dashboardstartupbuilder.devAppUnpublished

Intended Noun

The generated contract, the mdxui package, types every Component from its Noun. The published mdxui@7.0.0-alpha.1 predates it.

intended Noun: Component (the contract root)
noun: Component
definition: owned by startupbuilder.dev, quoted above
fields:
  name: { type: string, required: true, note: the name a Template places it by }
  props: { type: schema, required: true, note: every string bounded, every list counted }
  region: { type: enum, values: [header, section, footer, notice] }
  interactive: { type: boolean, note: it still renders a static still without script }
never: [className, inline style, markup]

Prior definitions

PriorDefinitionDisposition
startupbuilder.dev ComponentA named block of a Page, filled from records through typed propsAdopted word for word
startupbuilder.dev design-is-data rulingsComponent, then Region or Section, then Items, then an itemKept as one Noun: Region and Section are values of region, Items is ListSection, and the item root is Tile
@mdxui/site blockOne catalog layout, its CSS and its rendererCalled a Section type in public prose
mdxui 6 componentsReact components of the 6 lineSuperseded: a Component is data, rendered by a Section type

On this page