A Storyblok field to select a component from the current story.
Input options to customize the plugin.
Type: 'published' | 'draft'
Sets the version of the story to fetch.
Type: string
Sets the path to the components to filter starting from the story content in dot notation (e.g. body.my_list
).
Type: string
Sets the name of the components to filter as a comma separated list (e.g. list_item,magic_list_item
). If empty, no filter is applied.
Type: string
Sets the path to the field to pick up from the component reference in dot notation (e.g. _uid
).
Type: string
Sets the path to the components' name to use as display string in dot notation (e.g. body.my_list
).
Example output from the plugin:
{
"version": "published",
"component": "",
"reference": "_uid",
"name": "",
"selected": "<COMPONENT REFERENCE>"
}
npm install
npm run serve
npm run build
npm run lint