- hamburger menu
- download cbz
This commit is contained in:
Jérémy Guillot
2024-06-27 11:49:32 +02:00
parent 115e4336ab
commit b04055ec22
2 changed files with 46 additions and 6 deletions

View File

@@ -0,0 +1,10 @@
// assets/controllers/menu_controller.js
import { Controller } from '@hotwired/stimulus';
export default class extends Controller {
static targets = ["sidebar"]
toggleMenu() {
this.sidebarTarget.classList.toggle('-translate-x-full')
}
}