Copies a value, such as a link or a snippet, and draws a check once it has; with a label, it is a Button.
Installation
Examples
Default
Without children, it's an Icon button, so its tooltip reads Copy, then Copied for a moment. With them, it's a Button they label: the same icon turns into a check, and the label reads Copied for a moment.
demo.tsx
ui.roprgm.com/p/lisbon
Small
size takes an Icon button's sizes, such as icon-sm beside a command.
small.tsx
bun add @roprgm/uiWith a label
Children make it a Button, which takes a Button's variants and sizes, such as flat in a page's header.
label.tsx
Anatomy
Each part's data-slot, which a theme styles, is beside it.
bun add @roprgm/ui