Button setsSYSTEM SETSHARING SETNAVIGATION SETCLOSING SETRETENTION SETCONTACT SET Pricing and contactPRICING EMAIL US ContentBUTTON LIBRARYDISPLAY CODESSITE PACKSAI PROMPTSREADINSTALL GUIDECOUNTRY DIRECTORY LanguageTIẾNG VIỆTENGLISH VIEN PRICING

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

AttributeDefaultMeaning
tieu-deMENUTitle shown at the top of the drawer.
bentraiDrawer slides in from trai (left) or phai (right).

Shared attributes

AttributeMeaning
mauButton background, set it to your brand color
mau-chuText and icon color
nhanButton text
kieuicon = 44px round icon only · vien = outline button
rongFull-width button
ghi-luotPath 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: