Skip to content

Commit

Permalink
add config for sidekick
Browse files Browse the repository at this point in the history
  • Loading branch information
cogniSyb committed Dec 18, 2023
1 parent 0c64019 commit 37317f0
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tools/sidekick/library.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,34 @@
const library = document.createElement('sidekick-library')
library.config = {
base: '/block-library/library.json',
plugins: {
blocks: {
viewPorts: [
{
width: '375px',
label: 'Phone',
icon: 'device-phone',
},
{
width: '744px',
label: 'Tablet',
icon: 'device-tablet',
},
{
width: '1200px',
label: 'Desktop 1200',
icon: 'device-desktop',
default: true,
},
{
width: '1440px',
label: 'Desktop 1440',
icon: 'device-desktop',
default: true,
},
],
}
}
}

document.body.prepend(library)
Expand Down

0 comments on commit 37317f0

Please sign in to comment.