Change mock images

Is there a way to change the generated mock image when you create an image field in slice machine ui?

So, i could off course change the url for a desired unsplashed image, unfortunately they get replaced once i re-write the model from slicemachine-ui.

Hi @samuel Sorry about the delay on the reply.

So it's not possible yet. We're still discussing alternatives.

Are you unsatisfied with the actual image, the image type (picture instead of say, icon) or that they can't set the image by yourself?


Or you could create, for example, a customMock.json file, maintain it by hand and use it in the Storybook stories.

1 Like

customMock is a great idea, thanks :slight_smile:

1 Like

This is being tracked as an open feature request.

If you have another use-case for this feature, you can 'Flag' this topic to reopen. Please use the :heart: button to show your support for the feature and check out our Feature Request Guidelines.

We are now tracking this as an RFC in the Slicemachine repo:

Hello @samuel

Will it be okay if you could pass a specific Unsplash URL to use as mock in the builder.
We are currently discussing how to configure mocks here.

Feel free to comment and to give us your feedback.


1 Like