Replies: 2 comments
-
and |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can try using the prop To keep it collapsible on mobile, you can use the export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
const isMobile = useIsMobile();
return (
<Sidebar collapsible={isMobile ? "offcanvas" : "none"} {...props}>
{/* ... */}
</Sidebar>
);
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use the shadcn ui sidebar 3 block in my web app, but it always take screen as as the option to stick in to but what i want it have side bar inside the div or another component basically i want the side bar in the blue colored area how do i do that ?
Here's sidebar layout code (AppSidebar component is still the same component used in shadcn ui sidebar 3 block didn't changed it)
Beta Was this translation helpful? Give feedback.
All reactions