Skip to content

Commit

Permalink
feat: add custom breakpoints to makeswift
Browse files Browse the repository at this point in the history
  • Loading branch information
apledger committed Nov 8, 2024
1 parent d8e5c06 commit 5226ad5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion core/lib/makeswift/runtime.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
import { ReactRuntime } from '@makeswift/runtime/react';

export const runtime = new ReactRuntime();
export const runtime = new ReactRuntime({
breakpoints: {
small: { width: 640, viewport: 390, label: 'Small' },
medium: { width: 768, viewport: 765, label: 'Medium' },
large: { width: 1024, viewport: 1000, label: 'Large' },
screen: { width: 1280, label: 'XL' },
},
});

0 comments on commit 5226ad5

Please sign in to comment.