Crema React
v-4 CRA
v-4 CRA
  • About Crema CRA
  • Overview
    • Crema CRA Overview
    • Folder Structure
      • @crema
      • assets
      • modules
      • style
    • Package.json
      • MUI+CRA
      • MUI+Next.js
      • MUI+CRA+TS
      • MUI+Next.js+TS
      • Antd+CRA
      • Antd+Next.js
      • Antd+CRA+TS
      • Antd+Next.js+TS
    • GitHub Access
    • Slack Community
    • Figma File
  • Decelopment
    • Installation
    • Route Management
    • Auth User
    • Authentication Methods
    • Axios Config
      • APIs Calling
    • Multilingual
  • MUI
    • Theme Color
    • Sidebar Configuration
    • Navigation Style
    • Footer Configuration
    • Template Direction
    • Template Mode
  • FAQ
  • ANTD
    • About Crema Ant
    • Style Framework
  • Crema V-3 Doc
  • Servers
    • Python
    • Laravel
    • Mongoose
  • Credits
Powered by GitBook
On this page

Was this helpful?

  1. MUI

Navigation Style

Last updated 1 year ago

Was this helpful?

We have included eleven navigation styles in the Crema. You can choose the Navigation style according to your choice and requirement by following the under-written steps.

Changing Navigation Style in run time:-

Click on the settings button on the right corner of the screen just below the notification icon, a drawer will open in which you will find the navigation styles option and from there, you can the navigation style of your choice.

Changing Navigation Style in development mode (setting default Navigation Style):-

To set the default Navigation Style, go to the src/@crema/constants/defaultConfig.js

In this file, you will find a property named 'navStyle' inside the defaultConfig object which accepts eleven values. You need to set the value of 'navStyle' according to your choice. You can achieve it like below.

const defaultConfig = {
  ...
  navStyle: process.env.NX_NAV_STYLE, //Change this according our requirement 
  ...
};

######## NavStyle(src/@crema/constants/AppEnums.js) ##########

export const NavStyle = {
  DEFAULT: 'default',
  BIT_BUCKET: 'bit_bucket',
  STANDARD: 'standard',
  DRAWER: 'drawer',
  MINI: 'mini',
  MINI_SIDEBAR_TOGGLE: 'mini-sidebar-toggle',
  HEADER_USER: 'user-header',
  HEADER_USER_MINI: 'user-mini-header',
  H_DEFAULT: 'h-default',
  HOR_HEADER_FIXED: 'hor-header-fixed',
  HOR_DARK_LAYOUT: 'hor-dark-layout',
};

Layouts and their schematic designs are as follows:-

  1. Horizontal Light Navigation Layout

Default Layout

Standard Layout

Mini Layout

Drawer Layout

Bit Bucket Layout

Horizontal Default Layout

Horizontal Dark Navigation Layout

Mini Sidebar Toggle

Header User

Header User Mini