Unstack Dev Docs
Search…
⌃K

Generator

The Generator allows your users to iterate through lists and groups of data and create a piece of NOML for each item iterated on.
<Generator
dataRef={content.values}
item={(value, m) => (
<div>{value}</div>
)}
/>

Generator Tag Props:

  • dataRef: DataLocator - the data-element storing the Generator's configuration
  • item: anonymous arrow function - used to create a collection item