We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Have you considered adding slots to the atoms?
The text was updated successfully, but these errors were encountered:
I come from the React world, so don't have much experience with slots. How do you see it working?
You can do something like this, which might be similar:
{# Contents of `_atoms/my-atom` #} <div> <h1>{{ slot }}</h1> {{ children }} </div> {# Contents of a template #} {% set slot %} Slot content {% endset %} {% x:my-atom { slot: slot } %} Child content {% endx:my-atom %} {# Output #} <div> <h1>Slot content</h1> Child content </div>
Sorry, something went wrong.
No branches or pull requests
Have you considered adding slots to the atoms?
The text was updated successfully, but these errors were encountered: