npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

smart-layout

v1.4.9

Published

React Smart-Layout is a cutting-edge React library designed to effortlessly generate adaptive layouts that fit perfectly into any container. Empower your users by allowing them to swiftly reorganize elements and resize them to their needs.

Downloads

106

Readme

React Smart-Layout

React Smart-Layout is a cutting-edge React library designed to effortlessly generate adaptive layouts that fit perfectly into any container. Empower your users by allowing them to swiftly reorganize elements and resize them to their needs.

🌟 Features:

  • State Preservation: Maintains the state of components even after repositioning, ensuring a consistent user experience.
  • Persistent Layout: The layout remains intact even after page reload, offering users a reliable design continuity.
  • Adaptive: Automatically adjusts content to fit any container size.
  • Animated: Amazing animations for any element on the layout.
  • Movable: Easy-to-use interface that lets users reposition elements in real-time.
  • Resizable Components: Dynamically adjust the size of your components with intuitive resizing handles.
  • Highly Performant: Optimized for peak performance to ensure smooth user interactions, even with a large number of components (don't be afraid to test it with grids and entire pages).
  • Seamless Integration: Designed from the ground up to be easily integrated into any React project, no matter the size or complexity.

Give your users the ultimate layout experience and elevate your UI with React Smart-Layout! 🌐

Basic Example:

It's really easy to use, you just need to import the ComponentLayout and add your children

import { ComponentLayout } from "smart-layout";

<ComponentLayout id="starting-layout">
  <div style={{ width: "100%", height: "100%", background: "gray" }} />
  <div style={{ width: "100%", height: "100%", background: "blue" }} />
  <div style={{ width: "100%", height: "100%", background: "orange" }} />
  <div style={{ width: "100%", height: "100%", background: "orange" }} />
  <div style={{ width: "100%", height: "100%", background: "orange" }} />
</ComponentLayout>;

Result:

Alt Text

🔍 Ready to Elevate Your Layout Game? Explore Our Documentation!

Embark on a journey through the comprehensive documentation of Smart-layout and unlock the full potential of your web designs. Our guides are meticulously crafted to provide you with deep insights, practical knowledge, and a plethora of examples to enhance your mastery over dynamic layouts.

📚 From foundational concepts to advanced techniques, our documentation is your trusted companion. Whether you’re a curious beginner or a seasoned pro, there’s something in here for everyone.

✨ Embrace the elegance of state preservation, savor the smoothness of animated transitions, and stay ahead with our adaptive layout structures. And that's just the beginning!

💡 Discover tips, tricks, and best practices that will not only answer your questions but also inspire your creativity.

So, what are you waiting for? Dive into the Smart-layout documentation now and transform the way you create web experiences!

Start Exploring the Documentation

🚀 Experience Smart-layout in Real-time! 🚀

Dive into the interactive world of Smart-layout without any setup hassles! We've set up a live demo for you on StackBlitz. It's the perfect platform to experiment, tweak, and see our library in action.

Whether you're curious about its capabilities or just want to play around, StackBlitz offers an immediate, hands-on experience.

Try Smart-layout on StackBlitz Now!

👨‍💻 Support a Passionate Young Developer! 👨‍💻

Hello! I'm a 20-year-old software developer hailing from the vibrant landscapes of Argentina. My passion lies in bringing innovative ideas to life through my side projects. However, as much as I love what I do, it's a challenge to sustain and grow without some support.

Your donation won't just be a contribution; it will be a lifeline that enables me to continue dedicating time, energy, and creativity to these projects that I deeply care about. With your generous help, I can keep my dream alive, nurture my projects, and maybe one day, touch lives across the globe with my creations.

💡 Your support means more than you can imagine. Every bit counts, and your gesture will play a pivotal role in fueling my journey forward. Let's build the future of software together!

🌟 Show Some Love on GitHub! If you've found value in my work or just want to support me, please consider giving a star to my repository. It not only boosts my motivation but also helps others discover my projects. ⭐ Star on GitHub!

📅 Coming soon:

  • [x] Have custom styles
  • [x] Default layout
  • [ ] Scroll on mobile
  • [x] Add callbacks to all buttons
  • [ ] Find a way to return callbacks to manage the layout: e.g., startLayout()
  • [ ] Dismount only the element that was hidden and preserve the layout order
  • [ ] Minimize
  • [ ] Resize
  • [ ] Group layouts and move groups
  • [ ] Alt tab to navigate between containers and open the selected one in full-screen.
  • [ ] Optimization for rendering performance