### Install Dependencies and Run Development Scripts
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/CONTRIBUTING.md
Install project dependencies and run development scripts like starting the library in watch mode, running Storybook, or executing tests. These commands are essential for local development and testing.
```bash
yarn install # install dependencies
yarn start # build the library in watch mode (tsup)
yarn storybook # run Storybook for interactive development
yarn test # run the test suite (vitest)
yarn lint # lint
yarn typecheck # type-check
yarn build # production build
yarn size # check the bundle size budget
```
--------------------------------
### Install react-pro-sidebar
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/README.md
Install the library using npm or yarn. Ensure you have React and react-dom versions 18 or higher.
```bash
npm install react-pro-sidebar
# or
yarn add react-pro-sidebar
```
--------------------------------
### Basic Sidebar Example
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/README.md
A simple implementation of a sidebar with a menu and a submenu. This is a good starting point for integrating the sidebar into your application.
```tsx
import { Sidebar, Menu, MenuItem, SubMenu } from 'react-pro-sidebar';
export function App() {
return (
);
}
```
--------------------------------
### Install and Develop react-pro-sidebar Docs
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/website/README.md
Build the library and run the documentation development server.
```bash
# 1. Build the library so file:.. resolves to a populated dist/
cd ..
yarn install
yarn build
# 2. Run the docs dev server
cd website
yarn install
yarn dev
```
--------------------------------
### Complete Sidebar Layout Example
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/00-START-HERE.md
This example shows a full sidebar implementation with collapse/expand functionality and basic routing integration. It uses `useState` for managing sidebar state and `useLocation` for active menu item highlighting.
```tsx
import { useState } from 'react';
import { Sidebar, Menu, MenuItem, SubMenu } from 'react-pro-sidebar';
import { useLocation } from 'react-router-dom';
export function Layout() {
const [collapsed, setCollapsed] = useState(false);
const [toggled, setToggled] = useState(false);
const { pathname } = useLocation();
return (
setToggled(false)}
breakPoint="md"
>
{/* Your content here */}
);
}
```
--------------------------------
### Controlled Open State Example
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/website/pages/docs/components/sub-menu.mdx
Example demonstrating how to control the open state of a SubMenu using the `open` and `onOpenChange` props.
```APIDOC
## Controlled Open State
### Description
This example shows how to manage the open/closed state of a `SubMenu` component programmatically using the `open` prop and handling state changes with `onOpenChange`.
### Code
```jsx
import React, { useState } from 'react';
function MyComponent() {
const [open, setOpen] = useState(false);
return (
);
}
```
```
--------------------------------
### Install react-pro-sidebar with npm
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/README.md
Use this command to add the library to your project when using npm.
```bash
npm install react-pro-sidebar
```
--------------------------------
### Install react-pro-sidebar with Yarn
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/README.md
Use this command to add the library to your project when using Yarn.
```bash
yarn add react-pro-sidebar
```
--------------------------------
### Basic Sidebar Usage
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/README.md
A simple example demonstrating the basic structure of a sidebar with menu items and submenus.
```jsx
import { Sidebar, Menu, MenuItem, SubMenu } from 'react-pro-sidebar';
```
--------------------------------
### Install react-pro-sidebar with bun
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/website/pages/docs/installation.mdx
Use bun to add the react-pro-sidebar package to your project dependencies.
```bash
bun add react-pro-sidebar
```
--------------------------------
### Basic Sidebar Implementation
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/website/pages/index.mdx
A basic example of how to implement a sidebar with menu items using React Pro Sidebar components.
```jsx
import { Sidebar, Menu, MenuItem } from 'react-pro-sidebar';
function App() {
return (
);
}
```
--------------------------------
### Accordion SubMenu Example
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/website/pages/docs/components/sub-menu.mdx
Example of using the `accordion` prop to ensure only one direct child SubMenu is open at a time.
```APIDOC
## Accordion SubMenu
### Description
This example utilizes the `accordion` prop on a parent `SubMenu` to restrict the open state so that only one of its direct child `SubMenu` components can be expanded simultaneously.
### Code
```jsx
```
```
--------------------------------
### Sidebar Basic Usage
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/website/pages/docs/components/sidebar.mdx
A basic example of how to use the Sidebar component with Menu and MenuItem.
```APIDOC
## Sidebar Basic Usage
### Description
This snippet shows the fundamental structure for using the `Sidebar` component along with `Menu` and `MenuItem`.
### Code Example
```jsx
import { Sidebar, Menu, MenuItem } from 'react-pro-sidebar';
setToggled(false)}>
;
```
```
--------------------------------
### Example of Resolving Menu Item Styles
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/hooks-and-utilities.md
Illustrates calling the `resolveElementStyles` function with style parameters to get the appropriate CSS object for a menu button.
```typescript
const styleParams = { level: 0, disabled: false, active: true, isSubmenu: false };
const buttonStyles = resolveElementStyles(menuItemStyles, 'button', styleParams);
// If menuItemStyles.button is a function, it's called with styleParams
// If it's a static object, it's returned as-is
```
--------------------------------
### Menu Item with Icons
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/menu-item-component.md
Shows how to include icons alongside menu item text using the 'icon' prop. This enhances visual clarity and user experience. Ensure you have react-icons installed for this example.
```tsx
import { MenuItem } from 'react-pro-sidebar';
import { FiHome, FiSettings, FiLogOut } from 'react-icons/fi';
```
--------------------------------
### MenuItem Component Usage
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/website/pages/docs/components/menu-item.mdx
Basic example of how to use the MenuItem component within a Sidebar and Menu structure.
```APIDOC
## MenuItem Component Usage
### Description
This snippet demonstrates the fundamental structure for using the `MenuItem` component within the `react-pro-sidebar` library. It shows how to import and nest `MenuItem` inside `Menu` and `Sidebar` components, including an example of an active item with an icon.
### Code Example
```jsx
import { Sidebar, Menu, MenuItem } from 'react-pro-sidebar';
;
```
```
--------------------------------
### Example Usage of Menu Classes
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/hooks-and-utilities.md
Shows how to apply menu class names for custom styling in Emotion CSS or within CSS selectors.
```tsx
// In Emotion CSS
menuItemStyles={{
button: {
[`&.${menuClasses.active}`]: {
backgroundColor: '#e3f2fd',
},
},
}}
// In selectors
.{{menuClasses.active}} { color: #2196f3; }
```
--------------------------------
### Install react-pro-sidebar with pnpm
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/website/pages/docs/installation.mdx
Use pnpm to add the react-pro-sidebar package to your project dependencies.
```bash
pnpm add react-pro-sidebar
```
--------------------------------
### Example Usage of Sidebar Classes
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/hooks-and-utilities.md
Demonstrates how to use sidebar class names for custom styling with Emotion CSS or for setting test IDs.
```tsx
// In Emotion CSS
rootStyles={{
[".${sidebarClasses.collapsed}"]:.{
boxShadow: '0 2px 8px rgba(0,0,0,0.1)',
},
}}
// In test IDs
data-testid={`${sidebarClasses.root}-test-id`}
```
--------------------------------
### Basic Menu Structure
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/menu-component.md
Demonstrates the fundamental structure of a Sidebar with a Menu containing MenuItem and SubMenu components. This is the most basic setup for navigation.
```tsx
import { Sidebar, Menu, MenuItem, SubMenu } from 'react-pro-sidebar';
export function Dashboard() {
return (
);
}
```
--------------------------------
### Utility Class Usage Examples
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/types.md
Demonstrates how to use the exported utility class names for CSS targeting and assigning test IDs.
```typescript
// CSS targeting
[`.${sidebarClasses.root}`]: { boxShadow: '...' }
```
```typescript
// Test ID
data-testid={`${menuClasses.button}-test-id`}
```
--------------------------------
### SubMenu Component Usage
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/website/pages/docs/components/sub-menu.mdx
Basic example of using the SubMenu component within a Menu, including a label and an icon.
```APIDOC
## SubMenu Component Usage
### Description
This example demonstrates the basic structure of a `SubMenu` component nested within a `Menu`.
### Code
```jsx
```
```
--------------------------------
### Nested SubMenus Example
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/submenu-component.md
Demonstrates how to create deeply nested SubMenus to build complex navigation structures. Each SubMenu can contain other SubMenus or MenuItems.
```tsx
```
--------------------------------
### Setting Custom Sidebar Width
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/website/pages/docs/components/sidebar.mdx
Example of how to set a custom width for the expanded sidebar using the `width` prop.
```jsx
…
```
--------------------------------
### Basic Sidebar with Menu
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/sidebar-component.md
A simple sidebar implementation with a menu containing dashboard, profile, and settings items. This is a foundational example for integrating the Sidebar component.
```tsx
import { Sidebar, Menu, MenuItem } from 'react-pro-sidebar';
export function App() {
return (
);
}
```
--------------------------------
### Sidebar with React Router Integration
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/README.md
Example showing how to integrate react-pro-sidebar with React Router using the `component` prop and NavLink for active styling.
```jsx
import { Sidebar, Menu, MenuItem } from 'react-pro-sidebar';
import { NavLink } from 'react-router-dom';
```
--------------------------------
### MenuItem with Root Styles
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/website/pages/docs/components/menu-item.mdx
Example of applying custom styles directly to the root `
` element of a MenuItem using the `rootStyles` prop.
```jsx
```
--------------------------------
### Accordion Menu Example
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/menu-component.md
Configures the Menu component to behave as an accordion, where only one SubMenu can be open at a time within the same nesting level. Use the `accordion` prop set to `true`.
```tsx
```
--------------------------------
### Sidebar with Background Image and Custom Styles
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/sidebar-component.md
Configures a sidebar with a background image, custom dimensions, background color, and shadow styling. This example highlights customization options for visual appearance.
```tsx
```
--------------------------------
### Mobile-First Sidebar Layout
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/integration-guide.md
This example demonstrates a mobile-first layout where the sidebar is hidden by default on small screens and can be toggled open with a button. It automatically closes the sidebar when the mobile breakpoint is entered.
```tsx
import { useState, useCallback } from 'react';
export function MobileLayout() {
const [sidebarOpen, setSidebarOpen] = useState(false);
const handleBreakPoint = useCallback((broken: boolean) => {
// Auto-close sidebar when entering mobile breakpoint
if (broken) setSidebarOpen(false);
}, []);
return (
setSidebarOpen(false)}
onBreakPoint={handleBreakPoint}
width="250px"
collapsedWidth="70px"
>
{/* Main content */}
);
}
```
--------------------------------
### Setting Custom Breakpoint for Overlay Mode
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/website/pages/docs/components/sidebar.mdx
Example of setting a custom pixel value for the `breakPoint` prop, which determines when the sidebar switches to overlay mode.
```jsx
…
```
--------------------------------
### Menu Popover Mode Example
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/menu-component.md
Activates popover mode for top-level submenus, causing them to open as floating popups instead of sliding inline. This is useful for sidebars with a large number of items.
```tsx
```
--------------------------------
### Menu Item with Custom Styling
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/menu-item-component.md
Provides an example of applying custom styles to MenuItem elements using the 'menuItemStyles' prop. This allows for fine-grained control over the appearance of buttons and icons based on their state (active, disabled).
```tsx
```
--------------------------------
### Build react-pro-sidebar Docs
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/website/README.md
Build the static site for deployment.
```bash
yarn build # outputs the static site to ./out
```
--------------------------------
### Testing Sidebar Accessibility with axe-core
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/website/pages/docs/accessibility.mdx
Integrate axe-core into your test suite to verify that your react-pro-sidebar implementation has no accessibility violations. This example demonstrates a basic test setup using vitest-axe.
```ts
import { axe } from 'vitest-axe';
test('sidebar has no axe violations', async () => {
const { container } = render();
expect(await axe(container)).toHaveNoViolations();
});
```
--------------------------------
### Netlify Build Configuration
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/website/README.md
Configure Netlify to build the project, ensuring the library is built before the documentation site.
```toml
[build]
base = "website"
command = "cd .. && yarn install --frozen-lockfile && yarn build && cd website && yarn install --frozen-lockfile && yarn build"
publish = "website/out"
```
--------------------------------
### Basic Sidebar Usage in React
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/website/pages/docs/installation.mdx
Demonstrates how to set up a basic sidebar layout with menu items and submenus using react-pro-sidebar components.
```jsx
import { Sidebar, Menu, MenuItem, SubMenu } from 'react-pro-sidebar';
export default function App() {
return (
Hello, world!
);
}
```
--------------------------------
### Configuring Sidebar Responsiveness
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/00-START-HERE.md
Shows how to configure the Sidebar's responsive behavior using the `breakPoint` prop to control when it enters overlay mode. The `toggled` prop allows external control of the overlay, and `onBreakPoint` notifies of changes.
```tsx
```
--------------------------------
### Basic MenuItem Usage
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/website/pages/docs/components/menu-item.mdx
Demonstrates the basic structure of a MenuItem within a Sidebar and Menu. It shows how to include an icon and mark an item as active.
```jsx
import { Sidebar, Menu, MenuItem } from 'react-pro-sidebar';
;
```
--------------------------------
### MenuItem with Suffix
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/website/pages/docs/components/menu-item.mdx
Example of adding a suffix node to a MenuItem. This is commonly used for badges, counters, or keyboard shortcuts.
```jsx
```
--------------------------------
### Directory Structure
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/00-START-HERE.md
This snippet shows the file structure of the react-pro-sidebar project. It helps users locate specific documentation files.
```bash
.
├── 00-START-HERE.md ← You are here
├── INDEX.txt ← Documentation summary
├── README.md ← Master index & navigation
├── OVERVIEW.md ← Project overview
├── api-index.md ← Quick API reference
├── sidebar-component.md ← Sidebar component reference
├── menu-component.md ← Menu component reference
├── menu-item-component.md ← MenuItem component reference
├── submenu-component.md ← SubMenu component reference
├── types.md ← All type definitions
├── configuration.md ← Configuration options
├── hooks-and-utilities.md ← Internal details
├── state-management.md ← State management patterns
└── integration-guide.md ← Real-world examples
```
--------------------------------
### Pages Router Sidebar Component
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/website/pages/docs/examples/nextjs-integration.mdx
Implement a sidebar component for the Pages Router, using next/router to get the current pathname.
```tsx
// components/AppSidebar.tsx
import Link from 'next/link';
import { useRouter } from 'next/router';
import { Sidebar, Menu, MenuItem } from 'react-pro-sidebar';
export default function AppSidebar() {
const { pathname } = useRouter();
return (
);
}
```
--------------------------------
### Mobile-First Responsive Sidebar Configuration
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/configuration.md
Configuration for a mobile-first responsive sidebar with a breakpoint, toggle state management, and backdrop click handling.
```tsx
setToggledState(false)}
onBreakPoint={(broken) => {
if (broken) setToggledState(false);
}}
>
```
--------------------------------
### Basic Menu Structure
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/website/pages/docs/components/menu.mdx
Demonstrates the basic structure of a Sidebar with nested Menus, SubMenus, and MenuItems.
```jsx
import { Sidebar, Menu, MenuItem, SubMenu } from 'react-pro-sidebar';
;
```
--------------------------------
### Create a Changeset for User-Facing Changes
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/CONTRIBUTING.md
Use this command to create a changeset file when making user-facing changes. This process prompts for the bump type (patch, minor, major) and a summary for the changelog entry. The generated changeset file should be committed with your Pull Request.
```bash
yarn changeset
```
--------------------------------
### Single-Open Navigation Menu Configuration
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/configuration.md
Configure a sidebar with a menu that only allows one sub-menu to be open at a time, with a default open sub-menu.
```tsx
```
--------------------------------
### Disabled SubMenu Example
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/submenu-component.md
Disables interaction with a SubMenu and its children by setting the `disabled={true}` prop. This prevents clicks and highlights the SubMenu as inactive.
```tsx
```
--------------------------------
### Basic React Router Integration
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/integration-guide.md
Set up a basic navigation structure using react-pro-sidebar and react-router-dom's NavLink. Customize menu item styles based on active routes.
```tsx
import { Sidebar, Menu, MenuItem, SubMenu } from 'react-pro-sidebar';
import { NavLink, useLocation } from 'react-router-dom';
export function Navigation() {
const { pathname } = useLocation();
return (
);
}
```
--------------------------------
### Basic Sidebar Structure
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/website/pages/docs/components/sidebar.mdx
Demonstrates the basic structure of a Sidebar component with a Menu and MenuItem. It shows how to control the collapsed and toggled states and handle backdrop clicks.
```jsx
import {
Sidebar,
Menu,
MenuItem
} from 'react-pro-sidebar';
setToggled(false)}>
;
```
--------------------------------
### Configuring RTL Layout
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/website/pages/docs/components/sidebar.mdx
Demonstrates how to enable Right-to-Left (RTL) layout for the sidebar by passing the `rtl` prop. The surrounding div's direction style is also adjusted.
```jsx
…
```
--------------------------------
### Redux State Management for Sidebar
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/state-management.md
Manage sidebar state (collapsed and toggled) using Redux. This example assumes a 'sidebarSlice' with 'toggleSidebar' and 'setSidebarCollapsed' actions.
```tsx
import { useDispatch, useSelector } from 'react-redux';
import { toggleSidebar, setSidebarCollapsed } from './store/sidebarSlice';
export function App() {
const dispatch = useDispatch();
const { collapsed, toggled } = useSelector(state => state.sidebar);
return (
dispatch(toggleSidebar())}
>
{/* ... */}
);
}
```
--------------------------------
### Manage Active State with useLocation
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/menu-item-component.md
Use the `active` prop to visually indicate the current route. This example integrates with `react-router-dom`'s `useLocation` hook to determine the active state.
```tsx
import { useLocation } from 'react-router-dom';
function NavItem({ path, label, icon }) {
const { pathname } = useLocation();
const isActive = pathname === path;
return (
);
}
```
--------------------------------
### v1: Using ProSidebarProvider and useProSidebar hook
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/MIGRATION.md
Before migrating to v2, v1 used ProSidebarProvider to wrap the application and useProSidebar hook to control sidebar state.
```jsx
import { ProSidebarProvider, useProSidebar, Sidebar, Menu, MenuItem } from 'react-pro-sidebar';
// 1. wrap the app
function Root() {
return (
);
}
// 2. control via the hook
function App() {
const { collapseSidebar, toggleSidebar, collapsed, broken } = useProSidebar();
return (
<>
>
);
}
```
--------------------------------
### Customizing Menu Item Styles
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/00-START-HERE.md
Demonstrates how to apply dynamic styles to menu items based on their active state and nesting level using the `menuItemStyles` prop. This allows for visual feedback and hierarchy indication.
```tsx
```
--------------------------------
### Layout with Collapsible Sidebar and Main Content
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/state-management.md
Implements a responsive layout with a collapsible sidebar and main content area. Use `collapsed` and `toggled` props for sidebar control and `breakPoint` for responsive behavior. The main content area should handle overflow.
```tsx
export function Layout() {
const [sidebarCollapsed, setSidebarCollapsed] = useState(false);
const [sidebarToggled, setSidebarToggled] = useState(false);
return (
setSidebarToggled(false)}
breakPoint="lg"
>
);
}
```
--------------------------------
### Responsive Sidebar with Toggle
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/sidebar-component.md
Demonstrates a responsive sidebar that can be toggled open or closed using a button. It utilizes the `breakPoint` prop for responsive behavior and `onBackdropClick` to close the sidebar when the backdrop is clicked.
```tsx
import { Sidebar, Menu, MenuItem } from 'react-pro-sidebar';
import { useState } from 'react';
export function App() {
const [toggled, setToggled] = useState(false);
return (
setToggled(false)}
breakPoint="md"
>
);
}
```
--------------------------------
### Hybrid Sidebar State Management (Recommended)
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/state-management.md
A hybrid approach where the sidebar's collapsed and toggled states are controlled, but SubMenu states are uncontrolled. This simplifies state management while maintaining predictable sidebar behavior.
```tsx
export function App() {
const [sidebarCollapsed, setSidebarCollapsed] = useState(false);
const [sidebarToggled, setSidebarToggled] = useState(false);
return (
setSidebarToggled(false)}
breakPoint="md"
>
);
}
```
--------------------------------
### Menu with Icons and Styling
Source: https://github.com/azouaoui-med/react-pro-sidebar/blob/master/_autodocs/menu-component.md
Shows how to apply custom styles to menu items and include icons. The `menuItemStyles` prop accepts an object to define styles for different parts of the menu item, including hover effects.
```tsx
}>Home
}>
```