Device Viewer
Getting Started
Device frames for showcase. Part of the Bolt “Components” CSS framework that powers the Bolt Design System.
Install via NPM
npm install @bolt/components-device-viewer
Usage
{% include "@bolt-components-device-viewer/device-viewer.twig" with {
device: "iphone8",
orientation: "portrait",
color: "white",
image: {
src: "/pattern-lab/images/sample/product-device-screenshot--phone.jpg"
}
} only %}
Schema
Name | Type | Value(s) | Description | Default |
---|---|---|---|---|
deviceName | string
|
|
Name of the device. |
N/A |
color | string
|
|
Device color. |
N/A |
orientation | string
|
|
Device orientation. |
N/A |
magnify | boolean
| |
Add the magnifier effect. |
false
|
image | object
|
|
N/A |