2.23.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
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) |
---|---|---|---|---|
deviceName |
Name of the device. |
string
|
— |
|
color |
Device color. |
string
|
— |
|
orientation |
Device orientation. |
string
|
— |
|
magnify |
Add the magnifier effect. |
boolean
|
false
|
|
image |
object
|
— |
|
Color: black
Orientation: 'portrait'
Color: black
Orientation: 'landscape'
Color: silver
Orientation: 'portrait'
Color: silver
Orientation: 'landscape'
Magnification: true
Orientation: 'portrait'
Magnification: true
Orientation: 'landscape'
Color: black
Orientation: 'portrait'
Color: black
Orientation: 'landscape'
Color: silver
Orientation: 'portrait'
Color: silver
Orientation: 'landscape'
Color: gold
Orientation: 'portrait'
Color: gold
Orientation: 'landscape'
Magnification: true
Orientation: 'portrait'
Magnification: true
Orientation: 'landscape'