media
Ez az oldal még csak angolul érhető el.
Images, videos, placeholders, media library files and theme assets.
Ezen az oldalon
import { … } from '@poltura/theme-sdk/media';
| Name | What it is |
|---|
useMedia | The media library file or theme asset a media field's value names. |
useMediaDrawn | Whether a media field's value draws a picture, so a layout can drop the frame when it does not. |
useThemeAsset | A theme asset as media renderers read it. |
useAssetUrl | The URL a theme asset loads from: one rendition of an image with a role, otherwise the file whole. |
useVideoSetting | A video setting resolved to the file or player it plays, with its poster and how it plays. |
| Name | What it is |
|---|
MediaImage | A responsive image in every format the browser takes, with blur-up and broken-link recovery. |
MediaPlaceholder | The neutral drawing shown where an image is not chosen yet. |
SettingVideo | Draws a video setting: the file with its poster, autoplay, loop and mute, or the YouTube or Vimeo player, with its text alternative. |
| Name | What it is |
|---|
asset | A reference to a file under the theme's assets/ folder, by its path there. |
mediaUrl | The URL of one rendition of a stored image; any other URL comes back as it is. |
| Name | What it is |
|---|
MEDIA_ROLES | Every rendition a merchant or a setting can pick. |
Utoljára frissítve