Two Column Layout with resizable sidebar
- React + TS + Vite
- No libs
- Vanilla CSS
- Props for initial, min and max sidebar size
- Saves / loads preferred size automatically to LocalStorage
- Reset on double-click
- Most likely still has some bugs π€·ββοΈ
Screen.Recording.2023-03-16.at.8.21.31.PM.mov
.
βββ public/
βββ src/
β βββ components/
β β βββ App.tsx
β β βββ Layout.tsx <- β οΈ
β β βββ MainContent.tsx
β β βββ SidebarContent.tsx
β βββ hooks/
β β βββ use-resize-sidebar.tsx <- β οΈ
β βββ styles/
β β βββ Layout.css <- β οΈ
β β βββ index.css
β βββ main.tsx
β βββ vite-env.d.ts
βββ index.html
βββ tsconfig.json
βββ tsconfig.node.json
βββ package.json
βββ vite.config.ts