Rasengan Logo
Rasengan Logo
  • Docs
  • Blog
  • Showcase
Using stable versionv1.2.1
Documentation
Packages
Templates
Rasengan UI Kit
Using stable versionv1.2.1
Documentation
Packages
Templates
Rasengan UI Kit

API REFERENCE

Layout Convention naming

In Rasengan.js, to create a layout, you have to create a file that follow the following name pattern when you are using config-based routing system:

Layout
[name].layout.js

Note that, it's not required to follow this convention but, it's recommended to do so.


For file-based routing system, you have to create a file named layout.tsx or layout.jsx inside the src/app/_routes folder.

A layout is UI that is shared between routes.

Example

TypeScript
JavaScript
app.layout.tsx
import { LayoutComponent, Outlet } from "rasengan"; /* * This AppLayout is located inside the app.layout.tsx file */ const AppLayout: LayoutComponent = () => { return ( <div> <h1>App Layout</h1> <Outlet /> </div> ) } AppLayout.path = "/"; export default AppLayout;

Based on the convention, we have juste replace the [name] by app in the convention name and we got app.layout.jsx.

renderApp
[name].router.ts

On This Page

  • Example

Discover Plus Ultra ✨

A stunning and well crafted Portfolio website to showcase your work in a nice way.

Rasengan Logo
Rasengan Logo

Resources

  • Docs
  • Packages
  • Blog
  • Showcase
  • Support us

Products

  • Rasengan UI
  • Rasengan Hub
  • Chidori
  • Nindo
  • Chunin

Community

  • Github
  • X (Twitter)

Subscribe to the Newsletter

Stay informed to the news about rasengan.js including new releases, events, etc...

© 2024-2026 Rasengan Labs, All rights reserved.