Media

"testMedia": {
"type": "object",
"default": {}
},
import {
TwebBlockMedia,
} from '@tigriweb/components/controls';
<TwebBlockMedia
name="testMedia"
size="thumbnail"
{...{ attributes, setAttributes }}
/>
TwebBlockMedia.Content
{ attributes.testMedia.url && (
<div className="custom-image">
<TwebBlockMedia.Content
value={ attributes.testMedia }
/>
</div>
) }
Last updated
Was this helpful?