Bar Dock
image-galleryProEn række høje billedbjælker, der svulmer som i et dock, når markøren nærmer sig. Klik eller Enter åbner én til et stort kvadrat, mens de andre sløres og dæmpes.
Introduktionspris til og med 31. december 2026. Derefter 79 €.
Preview
Live demo. Temaet skifter selve demoen.
Kode
Koden er låst
Bar Dock er en del af Manniche UI Pro. En nøgle åbner kildekoden til alle 66 effekter.
Køb · 49 €49 € · Introduktionspris til og med 31. december 2026. Derefter 79 €.
- Engangsbetaling
- Én udvikler
- Log ind og opret din nøgle med det samme
- Ingen moms (§ 19 UStG)
Har du en nøgle? Hent koden med CLI eller MCP.
Nøglen ligger i MANNICHE_PRO_KEY, aldrig i koden eller i adressen. Sådan sætter du den op
npx shadcn@latest add @manniche-pro/bar-dockclaude mcp add --transport http manniche-ui https://mikkelmanniche.dk/api/mcp --header "Authorization: Bearer $MANNICHE_PRO_KEY"Props
BarDockProps
| Prop | Type | Standard | Hvad den gør |
|---|---|---|---|
items påkrævet | BarDockItem[] | – | The pictures, one bar each. Roughly 5 to 14 look best. |
barWidth | number | 28 | Width of a resting bar in CSS pixels. Bars shrink together on narrow containers so the whole row always fits. |
barHeight | number | 170 | Height of a resting bar in CSS pixels. |
gap | number | 6 | Space between bars in CSS pixels. |
magnification | number | 2.3 | How much the bar nearest the pointer grows in width (1 = no magnification). Neighbours taper off smoothly. |
heightMagnification | number | 1.3 | How much the nearest bar grows in height (1 = same height). Kept apart from magnification so bars can swell without getting much taller. |
range | number | 180 | Distance in CSS pixels over which the pointer still has an effect. Bars further away stay at rest. |
radius | number | 8 | Corner radius of the bars in CSS pixels. |
openSize | number | 300 | Side of the square a bar opens into, in CSS pixels. It is capped to fit the container. |
showCaption | boolean | true | Show the picture's alt text as a caption on the open bar. |
defaultOpen | number | – | Index of the bar that starts open. Leave out to start with all bars closed. |
onOpenChange | (index: number | null) => void | – | Called when a bar opens (its index) or the open bar closes (null). |
aria-label | string | 'Picture gallery' | Accessible name of the whole row. |
className | string | – | – |
A11y
Tastatur
The bars are one tab stop. Arrow keys, Home and End move between bars, Enter or Space opens a bar, and Escape closes it. While a bar is open the arrows switch picture.
Skærmlæser
The dock is a group, named when aria-label is set. Each bar is a button named from its alt with aria-expanded. The images are decorative and the captions are aria-hidden.
Mindre bevægelse
Under reduced motion the swelling and opening snap with no easing.
Andet
On touch the first tap swells a bar and the second opens it.