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.
customMock is a great idea, thanks
This is being tracked as an open feature request.
We are now tracking this as an RFC in the Slicemachine repo:
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.