modus-navbar-side-navigation-solidjs

modus-navbar-side-navigation-solidjs is a cursor rule for Cursor from julianoczkowski/create-trimble-app. It costs 0 tokens per session (1,613 once invoked), scanned A, original, MIT.

Integration guidance for connecting a ModusNavbar and ModusSideNavigation in a SolidJS application.

In plain words
What is it for?
Use it to build responsive application navigation with synchronized open states, custom navbar content, menu icons, and separate state for independent sections.
Why use it?
It prevents the navigation bar's hamburger control and side navigation from getting out of sync, while ensuring complex properties and menu icons are passed correctly.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to build responsive application navigation with synchronized open states, custom navbar content, menu icons, and separate state for independent sections.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/julianoczkowski/create-trimble-app/modus-navbar-side-navigation-solidjs
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/julianoczkowski/create-trimble-app

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for modus-navbar-side-navigation-solidjs

README.md
[![agentmods](https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-navbar-side-navigation-solidjs/github.svg)](https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-navbar-side-navigation-solidjs)
Your own site
<a href="https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-navbar-side-navigation-solidjs"><img src="https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-navbar-side-navigation-solidjs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for modus-navbar-side-navigation-solidjs

Your own site · 80×15
<a href="https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-navbar-side-navigation-solidjs"><img src="https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-navbar-side-navigation-solidjs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,613 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01613
Opus 5 $0.00000 $0.00807
Sonnet 5 $0.00000 $0.00323
Haiku 4.5 $0.00000 $0.00161

Measured 5d ago against content hash b0e892ec39b7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

modus-navbar-side-navigation-solidjs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

templates/solidjs/.cursor/rules/modus-navbar-side-navigation-solidjs.mdc · 204 lines

How it starts

The opening of the file, as written. The whole thing — 204 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Modus Navbar + Side Navigation Integration

Critical patterns for integrating ModusNavbar with ModusSideNavigation in SolidJS applications.

Key Rules

  • Use the ModusNavbar/ModusSideNavigation wrapper components - Never use raw web components directly
  • Complex props (userCard, visibility) are set as JS properties - Wrapper handles this via onMount/createEffect
  • Sync navbar hamburger with side navigation - Use separate signal state per demo section
  • Menu item icons use the start-icon slot - Pass <i class="modus-icons" slot="start-icon">name</i> as a child, NOT as a prop

DO: Sync Navbar Hamburger with Side Navigation

Use signals to keep the hamburger menu and side navigation in sync.

const [expanded, setExpanded] = createSignal(false);
const [menuOpen, setMenuOpen] = createSignal(false);

const handleMainMenuOpenChange = (open: boolean) => {
  setMenuOpen(open);
  setExpanded(open);
};

const handleExpandedChange = (exp: boolean) => {
  setExpanded(exp);
  setMenuOpen(exp);
};

<ModusNavbar
  userCard={userCard}
  visibility={{ mainMenu: true, user: true }}
  mainMenuOpen={menuOpen()}
  onMainMenuOpenChange={handleMainMenuOpenChange}
  mainMenuContent={
    <ModusSideNavigation
      items={navItems}
      expanded={expanded()}
      targetContent="#content-id"
      onExpandedChange={handleExpandedChange}
      onItemSelect={(item) => setSelectedItem(item.value)}
    />
  }
/>

DON'T: Share state between multiple demo sections

Each navbar+sidenav pair needs its own independent signals.

// DON'T: Two sections sharing the same signal
const [expanded, setExpanded] = createSignal(false);

<Section1> // Uses expanded()
<Section2> // Also uses expanded() - they interfere!

// DO: Separate components with their own state
function Section1() {
  const [expanded, setExpanded] = createSignal(false);
  // ...
}
function Section2() {
  const [expanded, setExpanded] = createSignal(false);
  // ...
}

DO: Use Slot-Based Icons in Menu Items

Read the full file on GitHub · 204 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 204 lines · 0 tokens per session scan A b0e892ec39b7

Subscribe to this mod's changes

modus-navbar-side-navigation-solidjs is a cursor rule published in the GitHub repository julianoczkowski/create-trimble-app (3 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,613 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.