Skip to content
pixi-silk
GitHub repository
Entry point

pixi-silk/ui/dock

ButtonDock: a row or column of SilkButtons that closes the gap when one hides.

import { ButtonDock } from 'pixi-silk/ui/dock';

Classes#

ClassDescription
ButtonDockA row or column of SilkButtons that closes the gap when one hides and opens it when it comes back, gliding the others into place. Slot sizes follow each button’s animated appearance, so the reflow and the fade are one motion. The dock sets each button’s x (row) or y (column), so do not position them yourself.

Interfaces#

InterfaceDescription
ButtonDockOptionsOptions of ButtonDock.