Skip to content
Copy with feedback, light
Light
Copy with feedback, dark
Dark

Every state

  • Copy with feedback, default, light
    Copy with feedback, default, dark

    default

  • Copy with feedback, hover, light
    Copy with feedback, hover, dark

    hover

  • Copy with feedback, focus, light
    Copy with feedback, focus, dark

    focus

  • Copy with feedback, copied, light
    Copy with feedback, copied, dark

    copied

  • Copy with feedback, failed, light
    Copy with feedback, failed, dark

    failed

  • Copy with feedback, disabled, light
    Copy with feedback, disabled, dark

    disabled

  • Copy with feedback, in-card, light
    Copy with feedback, in-card, dark

    in-card

Props

PropTypeDefaultWhat it does
idstring"copy-invite"Id of the button; the hint and status hang off it.
textstring"https://app.kettlebrook.example/join/7Q4M-2XKD"What goes on the clipboard.
labelstring"Copy invite link"The button's label.
iconIconName"link"Lucide icon name before the label.
copiedLabelstring"Copied"Copied label.
failedLabelstring"Couldn't copy"Failed label.
failedHintstring"Your browser blocked the clipboard. Copy it here:"Under the button when copying fails, before the text.
copiedStatusstring"Invite link copied to the clipboard"Said by screen readers after copying.
resetAfternumber2000Milliseconds before the button returns to its label.
state"copied" | "failed" | null–Start copied or failed (previews); it doesn't return by itself then. Null: the label.
onCopy(text: string) => void–Called with the text after a successful copy.
disabledboolean–Disables it.
classNamestring–Extra classes on the outer element.

More buttons

All 14

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans