Komponensek
Előnézeti kártya
Rámutatáskor megjelenő kártya, amely előnézetet ad a hivatkozás céljáról.
Használat
Alap
Blockstudio
The WordPress block framework for developers.
HTML
<bs:bsui-preview-card openDelay="200">
<bs:bsui-preview-card-trigger label="Blockstudio" />
<bs:bsui-preview-card-popup>
<bs:bsui-text content="The WordPress block framework for developers." variant="muted" />
</bs:bsui-preview-card-popup>
</bs:bsui-preview-card>Profil előnézete
Az előugró ablak tetszőleges blokkokat tartalmazhat, így egy említésre kattintva megjelenhet egy profilkép, bemutatkozás és jelvény.
Ada Lovelace
Ada Lovelace
Maintains the analytical engine bindings and reviews most pull requests.
Core teamHTML
<bs:bsui-preview-card openDelay="150">
<bs:bsui-preview-card-trigger label="Ada Lovelace" />
<bs:bsui-preview-card-popup>
<bs:bsui-stack direction="row" gap="3" align="start">
<bs:bsui-avatar fallback="AL" alt="Ada Lovelace" />
<bs:bsui-stack direction="column" gap="1" align="start">
<bs:bsui-text content="Ada Lovelace" variant="title" tag="h4" />
<bs:bsui-text content="Maintains the analytical engine bindings and reviews most pull requests." variant="muted" />
<bs:bsui-badge label="Core team" variant="secondary" />
</bs:bsui-stack>
</bs:bsui-stack>
</bs:bsui-preview-card-popup>
</bs:bsui-preview-card>Késleltetés nélkül
Mindkét késleltetés nulla, így a kártya a mutatóval együtt jelenik meg és tűnik el.
Release 2.4.0
Release 2.4.0
Fourteen commits, two of them touching the public API.
Stable
12 March
HTML
<bs:bsui-preview-card openDelay="0" closeDelay="0">
<bs:bsui-preview-card-trigger label="Release 2.4.0" />
<bs:bsui-preview-card-popup>
<bs:bsui-stack direction="column" gap="2" align="start">
<bs:bsui-text content="Release 2.4.0" variant="title" tag="h4" />
<bs:bsui-text content="Fourteen commits, two of them touching the public API." variant="muted" />
<bs:bsui-stack direction="row" gap="2">
<bs:bsui-badge label="Stable" variant="success" />
<bs:bsui-badge label="12 March" variant="secondary" />
</bs:bsui-stack>
</bs:bsui-stack>
</bs:bsui-preview-card-popup>
</bs:bsui-preview-card>Felépítés
Előnézeti kártya az alábbi blokkokból áll. Mindegyik külön blokk, amely csak a szülőjén belül jelenik meg.
bsui/preview-cardbsui/preview-card-popupbsui/preview-card-trigger
Attribútumok
| Attribútum | Típus | Alapértelmezett |
|---|---|---|
openDelay | number | 600 |
closeDelay | number | 300 |
bsui/preview-card-popup
Ez a blokk nem fogad attribútumokat.
bsui/preview-card-trigger
| Attribútum | Típus | Alapértelmezett |
|---|---|---|
label | richtext | — |