Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nextjs layout fc with semi layout conflict #2246

Open
1 task done
linpan opened this issue May 20, 2024 · 0 comments
Open
1 task done

nextjs layout fc with semi layout conflict #2246

linpan opened this issue May 20, 2024 · 0 comments

Comments

@linpan
Copy link

linpan commented May 20, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Which Component

No response

Semi Version

No response

Current Behavior

No response

Expected Behavior

No response

Steps To Reproduce

No response

ReproducibleCode

# semi layout
import { Layout } from '@douyinfe/semi-ui';


# nextjs layout 的用法, 
import SideNav from '@/app/ui/dashboard/sidenav';
 
export default function Layout({ children }: { children: React.ReactNode }) {
  return (
    <div className="flex h-screen flex-col md:flex-row md:overflow-hidden">
      <div className="w-full flex-none md:w-64">
        <SideNav />
      </div>
      <div className="flex-grow p-6 md:overflow-y-auto md:p-12">{children}</div>
    </div>
  );
}

如何把semi layout 替代或者继承 nextjs layout, 或者在nextjs 如何使用semi layout

Environment

- OS:
- browser:

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant