Built-in components

You can use Storyblok’s built-in components in your custom field type for user input that require access to the management API.

Asset selector

This proxy component let’s the user select an image and sets the image url to an attribute of your custom field-type. The field attribute needs to be the key of your model attribute. Following an example:

<sb-asset-selector :uid="uid" field="your_model_attribute">

Important: your_model_attribute needs to be a property in your model that you pass in the initWith method.