GithubHelp home page GithubHelp logo

salimi-my / shadcn-ui-sidebar Goto Github PK

View Code? Open in Web Editor NEW
700.0 700.0 84.0 1.43 MB

A stunning, functional and responsive retractable sidebar for Next.js built on top of shadcn/ui.

Home Page: https://shadcn-ui-sidebar.salimi.my

License: MIT License

JavaScript 0.38% CSS 2.65% TypeScript 96.97%
admin-panel dashboard nextjs shadcn-ui sidebar tailwind

shadcn-ui-sidebar's Introduction

Hello world!

  • 😎 Hi, I’m Salimi
  • 🔥 Web dev, making websites that are equal parts fun and functional 🎉💻
          No task too big, no bug too small 🐛
  • 📫 You can reach me through [email protected]

Socials

image image image image

Contributions

GitHub Streak

shadcn-ui-sidebar's People

Contributors

abeisleem avatar birobirobiro avatar hanaytug avatar salimi-my avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

shadcn-ui-sidebar's Issues

Cannot update a component (`HotReload`)

Encountered the following error:

Cannot update a component (`HotReload`) while rendering a different component (`Router`). To locate the bad setState() call inside `Router`, follow the stack trace as described in 

In a server page as simple as:

export default async function PublicPage() {
  return redirect(`/`);
}

When it was wrapped by the admin layout. The error was not obvious to me so it took a few hours, but the issue was the state management:

const sidebar = useStore(useSidebarToggle, (state) => state);

My project is already large, so it wasn't clear the issue was the above link, and I haven't confirmed with a minimal reproducible example, but it might be worthwhile checking it out.

Bottom bar removal?

First of all, thanks to your repo! This is really helpful for me.

I have an issue though, it seems there is a buttom bar and no way to remove it? Removing the footer removes the content., but I was unable to locate the buttom bar's CSS.

Thanks!

License

Assume this is MIT licensed? Can you add to the docs on what the allowed usage of the example is. Look awesome by the way!

Background in sidebar-toggle

Hi,

i used your Sidebar and it works very well, thanks for that!
An issue i found is that when using a differnt color scheme, the background color for the sidebar-toggle is not appropriate anymore.
Especially in dark mode you can see the background color of the button.

Screenshot 2024-06-25 143957

I fixed this for me by changing line 13 in the sidebar-toggle.tsx component:

<div className="invisible lg:visible absolute top-[12px] -right-[16px] z-20 bg-white dark:bg-primary-foreground">

And just remove the colors here:

<div className="invisible lg:visible absolute top-[12px] -right-[16px] z-20">

Its not a bug, but i just wanted to mention it :)

Profile tooltip on small screen

Hello,
The profile icon tooltip overflows to the right on small screens and causes a scrollbar to appear.
(in user-nav.tsx)

Capture d'écran 2024-06-28 130421

Capture d'écran 2024-06-28 130440

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.