Skip to main content

All Questions

0 votes
1 answer
34 views

The side menu bar(sticky) is overflowing unless I scroll

I am building a React app with a MainLayout component that sets consistent padding for all pages using utility classes (e.g., Tailwind CSS). Here is my MainLayout code: import React from "react&...
Sowmith Sripadi's user avatar
1 vote
0 answers
24 views

FGC Character select Layout in REACT

I’m a beginner at React and have designed a custom FGC (Fighting Game Community) layout in Figma. I want to implement it as a React app. This is the design:Character Layout What are some approaches i ...
andres fritsche's user avatar
1 vote
0 answers
137 views

React - Framer Motion - Cannot get Layout prop to work properly

The layout prop is the most frustrating prop in Framer Motion. I have 2 lists. One of them will leave the DOM when all of its children are deleted. I need 2 things from it, for it to leave the DOM ...
Y D's user avatar
  • 51
1 vote
0 answers
43 views

React-layout dynamic content?

This is code obtained from Ant Design. The content remains the same regardless of which option is chosen. How should I modify the code so that each option displays different content? I've tried ...
user122794's user avatar
1 vote
1 answer
185 views

Can't see the button at the buttom of my div when using tailwind

I am creating a dashboard with a header and under it, a fixed sidebar and main section that is scrollable on the vertical. Using tailwind, i set full page to have a height of screen, then the header ...
gerard's user avatar
  • 601
1 vote
1 answer
561 views

React Router issue: Navigation not working as expected in multi-component layout

I'm building a React application with React-Router, and I'm encountering a problem with route navigation. I have a multi-component layout where I've organized my components into different files. Here'...
Ethical hacker's user avatar
3 votes
2 answers
3k views

NextJS 13 - Header and Sidebar menu

I am new in NextJS (I am using Next JS 13) and I struggle with the next issue: In RootLayout I want to add the Header (with a hamburger menu icon), a sidebar menu and the {children} (this is the ...
user5512965's user avatar
0 votes
2 answers
813 views

Attempted import error: 'Navbar' is not exported from '@/components/Navbar' (imported as 'Navbar')

I want to add navbar and footer to my nextjs project but I unable to use layout. Here is my file structure. Here is the code: import './globals.css' import { Inter } from 'next/font/google' import {...
Subhamay Nath's user avatar
1 vote
1 answer
62 views

Is there a way to "anchor" two columns together such that all their entries remained lined up in React?

I'm working on a little side project to try and get familiar with React/Javascript by creating a little summary page for Pokemon. The way it works currently is that there is a search box which allows ...
Calvin Nisson's user avatar
1 vote
1 answer
282 views

Resizing responsive navbar using React and window.scrollY rotates between collapsed and uncollapsed at breakpoint

I'm trying to make a responsive navbar where it resizes once it scrolls past the height of the navbar (80px currently), but once I scroll to around the point of 80px, it constantly rotates between the ...
Slmy's user avatar
  • 43
0 votes
1 answer
55 views

How to raise textInput over keyboard? (React-Native)

I am trying to make it so that when a textInput is in focus, it is raised over the keyBoard. I didn't figure out how to make the KeyboardAvoidingView play well with my current layout but if someone ...
Rémi-Antoine Joron's user avatar
-7 votes
1 answer
212 views

How can I get this text layout algorithm to properly scale the text to "font size" option (text made with SVG paths)?

I have this full runnable code in JS is at the bottom of this post, showing the layout of Hebrew text according to the "stretched" text design, as described here. It looks like this in a few ...
Lance Pollard's user avatar
3 votes
0 answers
3k views

How to prevent layout component loading before page component in nextjs 13 new app directory?

In my project there is a layout for home page. The problem is the layout component is loading before other component of home page. The layout load first and then page content is loading. how to load ...
Mohammad syied bin salim's user avatar
0 votes
0 answers
62 views

How to display Login and Signup Page without Layout Header, Footer and Sidebar?

Layout Components import React from "react"; import Header from "../Header"; import Sidebar from "../Sidebar"; import Footer from "../Footer"; export default ...
Akila Shalini's user avatar
1 vote
1 answer
330 views

How to create a react layout component without using props?

I've seen the following pattern a lot in primitive components (like Radix UI) where layouts are rendered as custom children components. For example instead of this: <List title="Hello!&...
Eliot Hertenstein's user avatar

15 30 50 per page