GiftCreateContainer
Handles starting the subscription gifting flow. once the user submits the gift recipient's information successfully in this modal, the information is stored in usePelcro's giftRecipient field.
#
Usage#
ReferenceGiftCreateContainer
#
#
PropsonSuccess
#
(giftrecipient) โ void
Callback function called when the gift recipient's information is submitted succesfully.
onFailure
#
() โ void
Callback function called when submitting the gift recipient's information fails.
#
Children componentsAlert
#
Displays the relevant errors or success messages.
GiftCreateFirstName
#
Instance of Input
Input field component for the recipient's first name.
GiftCreateLastName
#
Instance of Input
Input field component for the recipient's last name.
GiftCreateEmail
Required#
Instance of Input
Input field component for the gift recipient's e-mail.
GiftCreateStartDate
#
Instance of DatePicker
Date field component for the gift starting date.
GiftCreateMessage
#
Instance of TextArea
Text area component for the gift message sent with the email.
GiftCreateSubmitButton
Required#
Instance of Button
A button component that submits the address creation form.
#
Propsname
#
string?
The title displayed inside the button