local assets 1/2

This commit is contained in:
2025-03-17 18:16:44 +01:00
parent 32b7d4bfed
commit 5720a69acf
13 changed files with 389 additions and 393 deletions
+3 -5
View File
@@ -9,14 +9,12 @@ import getBackgroundStyles from "./utils/getBackgroundStyles.js";
export default async function renderImg(props) {
const type = "Img";
if (props.src === undefined) {
props.src = 'https://picsum.photos/640/640'
console.error("The 'src' attribute is required for the 'Img' component.", props)
}
const { filteredProps, transformConfigs } = getFilteredProps(type, props);
const {
src,
@@ -37,8 +35,8 @@ export default async function renderImg(props) {
const artDirectives = [],
fallbackFormat = format,
fadeInTransition = false,
includeSourceFormat = false;
fadeInTransition = true,
includeSourceFormat = true;
const {
img: imgAttributes = {},