Skip to content
PixiKit

Copy Command

A command line with a copy button that springs into a check, with optional tabs for each package manager.

pixikit.com/docs/components/copy-command

Customize

Reset after1500ms
Accent
Font size16px
Width520px

Props

9
NameTypeDefaultDescription
commandstring"npx pixikit add aurora"The command to show and copy, when there are no tabs.
commandsCopyCommandTab[]NoneOne tab per variant of the command, e.g. one per package manager. Overrides command.
promptstring"$"The sign before the command. It is never copied.
resetAfternumber1500How long the check and the ring stay after a copy, in milliseconds.
accentstring"#7c3aed"The colour of the ring that flashes on a copy.
onCopy(command: string) => voidNoneCalled with the command after it is copied.
fontSizenumber16The text size in pixels; the box, the tabs and the button grow with it.
widthnumber520The widest it gets, in pixels; it shrinks to fit a narrow container.
classNamestringNone