Skip to content
Premium & Brand

Receive Button

Family Receive pill that morphs into a confirmation card.

Import

tsx
import { ReceiveButton } from "@cronus-ui/ui";
bash
npx cronus-ui add receive-button

Examples

.cronus

No audit fixture declares this family in .cronus yet.

React onlyParity: Not portedParity scoreboard

API Reference

Generated from the component's exported types.

ReceiveButtonLabels

Skip ReceiveButtonLabels props table
PropTypeDefaultDescription
receive*
string——
confirm*
string——
description*
string——
cancel*
string——
close*
string——
hint*
string——

ReceiveButtonProps

Extends Omit< ComponentPropsWithoutRef<"div">, "onAnimationStart" | "onAnimationEnd" | "onDrag" | "onDragStart" | "onDragEnd" >

Skip ReceiveButtonProps props table
PropTypeDefaultDescription
ref
Ref<HTMLDivElement>—Ref forwarded to the underlying DOM node.
open
boolean—Controlled open state.
defaultOpen
booleanfalseUncontrolled initial open state.
onOpenChange
(open: boolean) => void—Called when the open state changes.
onConfirm
() => void—Fired when the dialog Receive action is pressed. The dialog then closes.
labels
Partial<ReceiveButtonLabels>—Override default English strings.
className
string—Additional class names merged onto the root.
children
ReactNode—Contents of the component.
id
string—DOM id of the root element.