Installation
Based on React / Next.js (App Router)
The library can be used in pure React and Next.js App Router environments. The Next.js-specific entry supports Next.js >= 14.2 and < 17.
rxjs (>= 7) and fast-deep-equal (3.1.3) are included as runtime dependencies, so they usually do not need to be installed separately.
Type definitions (.d.ts) are included in the package and can be used directly in TypeScript.
Styles are imported from CSS Modules in components and work without separate global CSS imports.
Requirements
- React >= 18, React DOM >= 18
peerDependencies - Next.js >= 14.2 < 17 is an optional peer dependency required when using @byeolnaerim/flex-layout/next.
Install
Next.js URL Split Screen
To drop a page.tsx into FlexLayoutSplitScreen from only its URL in Next.js, use @byeolnaerim/flex-layout/next and /next/generator. Regular FlexLayout usage does not require this setup.
If errors occur due to issues like being included in server-side scope based on environment/build settings, use one of the options below.