Skip to main content

BuyButton

Interfaces

BuyButtonProps

Indexable

[p: string]: any

Others properties

Properties

PropertyTypeDescription
className?stringOverrides or extends the styles applied to the component. Default null
content?SCPurchasableContentPurchasable Content
contentId?string | numberContent id
contentTypeSCContentTypeContent type
label?ReactNodeOverrides the button label. Default null
onPurchase?(contentType, id) => anyonPurchase callback
PaymentOrderPdfButtonComponentProps?PaymentOrderPdfButtonPropsProps to spread to the PaymentOrderPdfButton component Default {}
prefetchedProducts?SCPaymentProduct[]Prefetched products
showTicket?booleanshow ticket button if content is already paid

Functions

BuyButton()

BuyButton(inProps): Element

API documentation for the Community-JS Buy Button component. Learn about the available props and the CSS API.

Import

import {BuyButton} from '@selfcommunity/react-ui';

Component Name

The name BuyButton can be used when providing style overrides in the theme.

CSS

Rule NameGlobal classDescription
root.SCBuyButton-rootStyles applied to the root element.

Parameters

ParameterTypeDescription
inPropsBuyButtonProps

Returns

Element