Site Logo
Site logo element. Auto-mode pulls name + logoUrl from Settings → General; explicit image/text modes override. Supports inverse logo that swaps in once the page scrolls past 50px (sticky/dark header use case).
Type: "logo"
Site logo element. Auto-mode pulls name + logoUrl from Settings → General; explicit image/text modes override. Supports inverse logo that swaps in once the page scrolls past 50px (sticky/dark header use case).
Props
| Field | Type | Default | Keterangan |
|---|---|---|---|
sourceMode | 'auto'|'image'|'text' | "auto" | Sumber |
src | string (image URL) | — | Gambar (tampil saat sourceMode = image) |
alt | string | — | Alt Text (tampil saat sourceMode = image) |
text | string | — | Dipakai saat sumber Text, atau sebagai fallback Auto bila logo Settings kosong. (tampil saat sourceMode ≠ image) |
inverseSrc | string (image URL) | — | Logo Inverse (tampil saat sourceMode ≠ text) |
height | string | — | mis. "40px". Wajib untuk SVG. |
width | string | — | mis. "120px". Wajib untuk SVG. |
loading | 'eager'|'lazy' | "eager" | Loading |
linkType | 'home'|'url'|'none' | "home" | Link to |
link | string (URL) | — | URL (tampil saat linkType = url) |
Contoh
{
"id": "log01abc",
"type": "logo",
"props": {
"sourceMode": "auto",
"linkType": "home",
"loading": "eager"
}
}