To pass data to a Marko.js component, you use the component's attributes. Here's an example:
// parent-component.marko
<child-component name="Marko" age=5 />
// child-component.marko
<template>
<div>
Name: ${input.name}, Age: ${input.age}
</div>
</template>
In this example, the name and age attributes are passed from parent-component.marko
to child-component.marko
and accessed via the input object.