Skip to content

YuJM/layouts-rc

Repository files navigation

Layouts-rc Monorepo

Homepage Repository License: MIT

Production-ready React and Vue component libraries for modern web applications

📦 Packages

This monorepo contains three complementary libraries designed to simplify UI development:

Flutter-inspired layout components for React

  • React component library inspired by Flutter layout widgets
  • Type-safe layouts with flexible styling (Tailwind CSS, CSS-in-JS, CSS Modules)
  • Components: Scaffold, Row, Column, Center, SlotBaseComp, and more
  • Perfect for building responsive, structured layouts
npm install layouts-rc

Lightweight overlay manager for React

  • Zero-dependency, 2KB gzipped overlay management
  • Hook-based API with Promise support for async flows
  • SSR-safe with Next.js, Remix compatibility
  • Works seamlessly with Radix UI, shadcn/ui
  • Perfect for dialogs, alerts, sheets, and modals
npm install overlay-manager-rc

Reactive overlay manager for Vue 3

  • Fully reactive with Vue 3 composition API
  • 3.17KB gzipped for modern apps
  • Multiple overlay stacking support
  • 97%+ test coverage
  • Works with Radix Vue, reka-ui, Headless UI
npm install overlay-manager-vue

🚀 Quick Start

React Projects

// Install both packages
npm install layouts-rc overlay-manager-rc

// Use layouts
import { Scaffold, Row, Column } from 'layouts-rc';

// Use overlay manager
import { useOverlayManager, OverlayContainer } from 'overlay-manager-rc';

Vue Projects

npm install overlay-manager-vue
<script setup>
import { useOverlay } from 'overlay-manager-vue';
</script>

🌐 Live Demo

Visit our interactive demo to see all packages in action:

https://layouts-rc-web.vercel.app

📚 Documentation

Each package has comprehensive documentation:

🛠️ Development

This is a pnpm workspace monorepo.

Prerequisites

  • Node.js 18+
  • pnpm 8+

Installation

# Clone the repository
git clone https://github.com/YuJM/layouts-rc.git
cd layouts-rc

# Install dependencies
pnpm install

# Build all packages
pnpm build

# Run tests
pnpm test

Package Scripts

# Build specific package
pnpm --filter layouts-rc build
pnpm --filter overlay-manager-rc build
pnpm --filter overlay-manager-vue build

# Test specific package
pnpm --filter overlay-manager-rc test
pnpm --filter overlay-manager-vue test

# Type check
pnpm --filter overlay-manager-rc type-check

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

MIT © YuJM

🔗 Links

About

Component library for React layouts.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •