Adds an Image panel in the Makeswift builder to visually edit an image prop.
An image panel on a feature card component to pick an icon
The Makeswift files manager
Image.Format.URL
, your component receives a string
value of the image url. If set to Image.Format.WithDimensions
, your component receives an object of type ImageWithDimensions
. This format is useful when using components like next/image
that require you to pass the image dimensions as props.format
is set to Image.Format.URL
, the prop type is string
.
If format
is set to Image.Format.WithDimensions
, the prop type is ImageWithDimensions
.
icon
prop of a Feature Card component.
Image.Format.URL
Image.Format.WithDimensions
.makeswift.ts
is a naming convention for organizing Makeswift registration
code. Learn
more.