Menu
Vertical and horizontal navigation lists with nested submenus
Class Reference Basic
Layout
Ul(
Li(A('Item 1')),
Li(A('Item 2')),
Li(A('Item 3')),
cls='menu menu-horizontal bg-base-200'
)
Auto-import documentation coming soon...
Ul(
Li(A('Item 1')),
Li(A('Item 2')),
Li(A('Item 3')),
cls='menu bg-base-200 w-56 p-0 [&_li>*]:rounded-none'
)
Auto-import documentation coming soon...
Ul(
Li(A('xs item 1')),
Li(A('xs item 2')),
cls='menu menu-xs bg-base-200 rounded-box w-56'
),
Ul(
Li(A('sm item 1')),
Li(A('sm item 2')),
cls='menu menu-sm bg-base-200 rounded-box w-56'
),
Ul(
Li(A('md item 1')),
Li(A('md item 2')),
cls='menu menu-md bg-base-200 rounded-box w-56'
),
Ul(
Li(A('lg item 1')),
Li(A('lg item 2')),
cls='menu menu-lg bg-base-200 rounded-box w-56'
),
Auto-import documentation coming soon...
Icons
Ul(
Li(A(Icon.home())),
Li(A(Icon.info())),
Li(A(Icon.stats())),
cls='menu bg-base-200 rounded-box'
)
Auto-import documentation coming soon...
Ul(
Li(A(Icon.home())),
Li(A(Icon.info())),
Li(A(Icon.stats())),
cls='menu menu-horizontal bg-base-200 rounded-box'
)
Auto-import documentation coming soon...
Ul(
Li(A(
Icon.home(),
data_tip='Home',
cls='tooltip tooltip-right'
)),
Li(A(
Icon.info(),
data_tip='Details',
cls='tooltip tooltip-right'
)),
Li(A(
Icon.stats(),
data_tip='Stats',
cls='tooltip tooltip-right'
)),
cls='menu bg-base-200 rounded-box'
)
Auto-import documentation coming soon...
Special
Ul(
Li(A('Enabled item')),
Li(A('disabled item'), cls='disabled'),
Li(A('disabled item'), cls='disabled'),
cls='menu bg-base-200 rounded-box w-56'
)
Auto-import documentation coming soon...
Ul(
Li(Button('Item 1')),
Li(Button('Item 2', cls='active')),
Li(Button('Item 3')),
cls='menu bg-base-200 w-56 rounded-box'
)
Auto-import documentation coming soon...
Ul(
Li(A(Icon.file(), 'resume.pdf')),
Li(
Details(
Summary(
Button( Icon.folder(), 'My Files')
),
Ul(
Li(A(Icon.file(), 'Project-final.psd')),
Li(A(Icon.file(), 'Project-final-2.psd')),
Li(
Details(
Summary(
Button(Icon.folder(), 'Images')
),
Ul(
Li(A(Icon.image(), 'Screenshot1.png')),
Li(A(Icon.image(), 'Screenshot2.png')),
Li(
Details(
Summary(
Button(Icon.folder(), 'Others')
),
Ul(
Li(A(Icon.image(), 'Screenshot3.png'))
),
open=''
)
)
),
open=''
)
)
),
open=''
)
),
Li(A(Icon.file(), 'reports-final-2.pdf')),
cls='menu menu-xs bg-base-200 rounded-lg max-w-xs w-full'
)
Auto-import documentation coming soon...
Class Reference
Class | Type | Description |
---|---|---|
menu | Component | Base menu class |
menu-title | Part | Section title styling |
menu-dropdown | Part | Submenu container |
menu-dropdown-toggle | Part | Toggle to show/hide the menu-dropdown using JS |
menu-disabled | Modifier | Disabling a menu item |
menu-active | Modifier | Active menu item |
menu-focus | Modifier | Focused menu item |
menu-dropdown-show | Modifier | Shows the menu-dropdown-toggle and menu-dropdown collapsible submenu using JS |
menu-xs | Size | Extra small size |
menu-sm | Size | Small size |
menu-md | Size | Medium size [Default] |
menu-lg | Size | Large size |
menu-xl | Size | Extra large size |
menu-vertical | Direction | Vertical layout (default) |
menu-horizontal | Direction | Horizontal layout |
Do you have a question? ask the community
Do you see a bug? open an issue on GitHub
LLMs Context: Full Markdown | This Component