Skip to content

Component & Component List

Jon Winton edited this page Sep 15, 2016 · 1 revision

Component

When it comes down to it, a component is just an object of data. You get to define the properties of this object and how it's edited in a component's schema.yml file, but it's still just an object in the end.

{
  title: 'My Component!',
  isAwesome: true
}

Component List

There's already some great documentation around the _componentList and how to create one, but for our purpose, we need to think of a _componentList in terms of its data structure. Most simply, a Component List is just an array and each item in the array is a Component (which is just an object).

[
  {
    title: 'My Component!',
    isAwesome: true
  },
  {
    title: 'My Second Component!',
    isAwesome: true
  }
]
Clone this wiki locally