How to use the Design System with custom field-types?
IMPOrtant:
Note that blok.ink loads the recent version of the design systems for field-type development.
It's possible to use our Design System in custom field-types.
To do that, we first have to clone the repository for the local development plugin.
Then we need install the design system in the cloned storyblok-fieldtype
project:
Or with Yarn:
Loading a specific component
Now, we can import a specific component directly from Design System. Open src/Plugin.vue
and add the code below. You need to import the component that you want to use (Line 23) and use it in Vue as a component (Line 27) . Then you will be able to use it in your template (Line 3).