benjaminpalko/.opencode/skills/daisyui/components/dock.md
Benjamin Palko f526f5c0aa
Some checks failed
Deploy / deploy (push) Failing after 39s
set up new workflow and migrate to .forgejo dir (#5)
Co-authored-by: Benjamin Palko <benjaminpalko@hotmail.com>
Reviewed-on: #5
2026-08-11 20:55:29 -04:00

814 B

dock

Dock (also know as Bottom navigation or Bottom bar) is a UI element that provides navigation options to the user. Dock sticks to the bottom of the screen

dock docs

Class names

  • component: dock
  • part: dock-label
  • modifier: dock-active
  • size: dock-xs, dock-sm, dock-md, dock-lg, dock-xl

Syntax

<div class="dock {MODIFIER}">{CONTENT}</div>

where content is a list of buttons:

<button>
	<svg>{icon}</svg>
	<span class="dock-label">Text</span>
</button>

Rules

  • {MODIFIER} is optional and can have one of the size class names
  • To make a button active, add dock-active class to the button
  • add <meta name="viewport" content="viewport-fit=cover"> is required for responsiveness of the dock in iOS