Home / Buttons / SYSTEM SET
MENU button
Hamburger button for the top-left corner. Opens a drawer holding every button and category of the site.
Tag name: <nut-menu> · Vietnamese name: MENU
REAL BUTTON — TAP IT
Open the demo on its own page →
Install in one minute
Upload nut-menu.js to your site, then paste this where the button should appear:
<script defer src="/nut/nut-menu.js"></script>
<nut-menu tieu-de="Fan.com.vn" kieu="icon">
<nut-cai-app kieu="vien"></nut-cai-app>
<a href="#quat-dung">Stand fans</a>
<a href="#quat-tran">Ceiling fans</a>
<a href="#xep-hang">RANKINGS</a>
<a href="#doc">READ</a>
</nut-menu>Button attributes
| Attribute | Default | Meaning |
|---|---|---|
tieu-de | MENU | Title shown at the top of the drawer. |
ben | trai | Drawer slides in from trai (left) or phai (right). |
Shared attributes
| Attribute | Meaning |
|---|---|
mau | Button background, set it to your brand color |
mau-chu | Text and icon color |
nhan | Button text |
kieu | icon = 44px round icon only · vien = outline button |
rong | Full-width button |
ghi-luot | Path to the PHP file that logs clicks |
Notes
- Add this CSS so the menu items do not flash before the button loads:
nut-menu:not(:defined){display:inline-block;width:44px;height:44px} nut-menu:not(:defined)>*{display:none} - Recommended order inside the menu: INSTALL APP → categories → conversion buttons → content buttons → news → VISITORS last.
- Use
<b>for group headings and<a>for items; other buttons (nut-cai-app,nut-luot-truy-cap) go straight inside.
Version history
- 1.0.0 (2026-10-05) — First packaged release as a self-contained component.
- 1.1.0 (2026-10-05) — Added English: button text, messages and dialogs follow the page language (<html lang>).
Share this page: