Vorschau-Bühne — component.preview-stage
Verkleinerte Live-Vorschau wie im Website Studio: eine Seite dieses Servers in eigenem Rahmen ohne Skripte (mode=frame, virtuelle Breite z. B. 1280 px) oder ein Bild (mode=image), skaliert auf die verfügbare Breite. {name}-Platzhalter in src bzw. sources[param] folgen den gleichnamigen Feldern des u
Beispiele
Seite im Rahmen (1280 px, verkleinert)
Bild je Option
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
mode | string: frame | image | "frame" |
src | string | "" |
params | object | — |
sources | object | — |
param | string | "" |
label | string | "Vorschau" |
caption | string | "" |
alt | string | "" |
emptyText | string | "" |
width | number | 1280 |
height | number | 800 |
layout | string: stage | split | "stage" |
chrome | string: full | bare | "full" |
lazy | boolean | false |
Events & Slots
Events: change
Slot controls: akzeptiert ui.*, component.*, layout.*
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--preview-stage-border | color-mix(in srgb, var(--color-border-default) 75%, transparent) |
Genutzte Design-Tokens
border.hairline color.action.primary color.border.default color.surface.default color.surface.sunken color.text.default color.text.muted duration.base duration.fast easing.standard elevation.raised focus.ring-color focus.ring-offset focus.ring-width font.family.default radius.control radius.sm radius.surface size.05 size.1 size.2 size.4 size.6 text.sm text.xs weight.semibold