Sections can be coded by devs and configured by business users in the Admin. Learn all of its capabilities.
props
types and how that
impacts the form we render on deco.cx’s Admin.
props
as their first argument and use those values in their markup to display texts,
images or configure some behavior.
Usually, these props
are passed in another component, but when you’re using
deco.cx these props are configured in the Admin, which makes it easy for
business users to change content in their Sites.
To declare how these props
will be configured you can use the Typescript
type, specifying which props and their respective type like string
,
number
, Array<T>
, etc..
Example:
string
, so the Section will get the URL of the
image that will be hosted on deco.cx servers.
Optional: deco.cx provides a component that optimizes
the image loading and can be used in conjunction with this property. Example:
@title
, @description
,
@format
among others. For example, to accept emails only:
uri
, color
. You can read more about it in
the
annotations doc.