Dot Install
Pick your package manager once and every box on the site follows, remembered for next time. Copy, and the dots of the icon fly together into a tick, then back. A long command scrolls in its line rather than wrapping, the prompt is never copied, and if the clipboard is refused the command is selected so a keystroke copies it.
Needs: None. One tiny canvas for the icon.
Customize
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| package | string | – | The package; npm, pnpm, yarn and bun commands are made from it. |
| commands | Record<string, string> | string | – | Your own commands by tab name, or one command. |
| storageKey | string | null | "mlui-install" | Remembers the tab, shared by every box with the same key. |
| prompt | string | "$" | Before the command; never copied. |
| onCopy | (text, tab) => void | – | Called once it's on the clipboard. |
| tone | string | – | The tick's colour. Green by default. |
| className | string | – | Class on the box. |
| style | CSSProperties | – | Style on the box. |