A frosted bar of app tiles, like the iOS dock. Size changes the tiles. Magnify follows the pointer and eases the neighbors apart.
Unlock it plus 108 pro blocks, widgets & layouts — $99 one-time. Lifetime updates, 14-day money-back guarantee.
Opened: None
<ply-dock [items]="apps" [size]="size()" [magnify]="magnify()" (itemSelect)="open($event)"> </ply-dock>
TypeScript
import { Component, signal } from '@angular/core';
// Install: npx ply-ui-cli add dock
// Paths are relative to aliases.components (default: src/app/components)
import { DockComponent, DockItem, DockSize } from './dock/dock.component';
@Component({
selector: 'app-dock-example',
imports: [
DockComponent
],
template: `...`
})
export class DockExampleComponent {
readonly apps: DockItem[] = [
{ label: 'Phone', value: 'phone', icon: 'phone', tone: 'green' },
{ label: 'Mail', value: 'mail', icon: 'inbox', tone: 'blue' },
{ label: 'Music', value: 'music', icon: 'music', tone: 'pink' },
{ label: 'Notes', value: 'notes', icon: 'file-text', tone: 'yellow' },
];
readonly size = signal<DockSize>('md');
readonly magnify = signal(true);
readonly opened = signal('None');
open(item: DockItem): void {
this.opened.set(item.label);
}
}Install
npx ply-ui-cli add dock
npx ply-ui-cli add dock
For AI agents
Copy a prompt with the registry name, CLI install, and import — or add the Ply MCP server.
npx -y ply-ui-mcp
Ply provides standalone components. Import the exact elements you want to use into your component.
// Install: npx ply-ui-cli add dock
// Paths are relative to aliases.components (default: src/app/components)
import { DockComponent, DockItem } from './dock/dock.component';
@Component({
selector: 'app-your-component',
imports: [
DockComponent
],
template: `...`
})
export class YourComponent {} API for dock — generated from JSDoc in the library source.
| API | Member | Type | Default | Description |
|---|---|---|---|---|
DockItem | label | string | — | Accessible name. Also the letter when `icon` is omitted. |
DockItem | value | string | — | Value emitted with the item. |
DockItem | icon | string | — | Outline icon drawn on the tile. |
DockItem | tone | DockTone | — | Tile color. Defaults to blue. |
ply-dock | class | string | '' | Extra host classes merged via `cn()`. |
ply-dock | items | DockItem[] | [] | App tiles. |
ply-dock | size | DockSize | 'md' | Tile size. `md` matches the iOS dock. |
ply-dock | magnify | boolean | false | Grows tiles toward the pointer and shifts them apart. |
ply-dock | aria-label | unknown | 'Dock' | Accessible name of the toolbar. |
ply-dock | (itemSelect) | DockItem | — | Fires with the chosen item. |
Content