2.11.0
Device Viewer Component in Bolt
Device frames for showcase. Part of the Bolt “Components” CSS framework that powers the Bolt Design System.
npm install @bolt/components-device-viewer
{% include "@bolt-components-device-viewer/device-viewer.twig" with {
device: "iphone8",
orientation: "portrait",
color: "white",
image: {
src: "/images/sample/product-device-screenshot--phone.jpg"
}
} only %}
Note: when assigning component props as HTML attributes on a web component, make sure to use kebab-case
.
Prop Name | Description | Type | Default Value | Option(s) |
---|---|---|---|---|
|
Name of the device. |
string
| — |
|
|
Device color. |
string
| — |
|
|
Device orientation. |
string
| — |
|
|
Add the magnifier effect. |
boolean
|
false
|
|
|
object
| — |
|