Glass
JS behaviour
Glass dock
A glass dock whose magnifier glides to the item under the pointer or focus, with the name tooltip alongside.
Real scenarios
The component as it is used in a product — not a specimen grid.
Your workspace, one glide away
Sweep the pointer across, or Tab through — the magnifier and the name follow.
The same dock as links
Items with href are real anchors; the rest can carry a Livewire click.
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| items | array | [] | Each item: label, icon, tone (lapis · violet · cyan · gold · ink · rose · green), href or click (a Livewire action), and current. |
| label / preset | string | null · regular | The accessible label and the glass body. |
Snippet
<x-nx::glass-dock label="برنامهها" :items="[
['label' => 'فایلها', 'icon' => 'folder', 'tone' => 'lapis', 'current' => true],
['label' => 'ایمیل', 'icon' => 'mail', 'tone' => 'cyan', 'click' => 'ping(\'ایمیل باز شد\')'],
['label' => 'موسیقی', 'icon' => 'music', 'tone' => 'rose'],
]" />