diff --git a/docs/src/_includes/layouts/base.njk b/docs/src/_includes/layouts/base.njk index 23837d9..65348f9 100644 --- a/docs/src/_includes/layouts/base.njk +++ b/docs/src/_includes/layouts/base.njk @@ -3,25 +3,37 @@
{# Dark mode #} - + {# Theme variant #} diff --git a/docs/src/_includes/partials/header.njk b/docs/src/_includes/partials/header.njk index 6353274..c9884bd 100644 --- a/docs/src/_includes/partials/header.njk +++ b/docs/src/_includes/partials/header.njk @@ -1,7 +1,7 @@For more complex components, you can use Nunjucks or Jinja macros to help you generate the HTML and JavaScript code.
To install them, either copy them directly from the GitHub repository or use the CLI to do the work for you.
For example, here's how you could use the select() macro to generate the HTML and JavaScript code for a Select component:
Make sure to include the JavaScript code before Alpine.js core JS file:
- {% set code %} - -{% endset %} -{{ code_block(code, "jinja") }} -