Please note: this repository is archived. Please see the Component Library plugin for Craft CMS for our latest ideas on using component libraries within Craft CMS.
Allows you to include Fractal generated partials in your Craft CMS templates.
This plugin requires Craft CMS 4.0.0-RC-2 or later.
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require madebyraygun/fractal
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for Fractal Loader.
Make use of the Fractal library in Craft 4 by exporting a components-map.json
file to your base craft/templates
directory. Then include in your templates like
{% include '@button' with {
text: 'Click here',
url: 'https://google.com'
} %}
Credit ournameismud for the Craft 3 version. Credit allmarkedup for original Fractal component loader plugin for Craft cms