Components

Button

A versatile button component with multiple variants, sizes, and states. Supports loading indicators and forwards any HTML attributes to the underlying element.

Button

A general-purpose button in five variants, three sizes, and loading/disabled states. Additional HTML attributes are forwarded to the underlying <button> element.

Variants
Sizes
States

Copy Button

A wrapper that makes any slotted content copy a value to the clipboard on click. Shows a "Copied!" tooltip bubble for 1.5 seconds, then fades out.

PropTypeDefaultDescription
valuestringRequired. The text written to the clipboard on click.
iconboolfalseRenders a built-in clipboard icon button. The $slot is ignored when true.

The $slot is the clickable trigger when icon is false — any markup works: text, <code>, a <button>, etc. Additional HTML attributes are merged onto the wrapper <span>.

Plain text
Hello, world!
Code snippet
composer require pajak/ui
Icon trigger
sk-abc123xyz