BuyButton
Interfaces
BuyButtonProps
Indexable
[p
: string
]: any
Others properties
Properties
Property | Type | Description |
---|---|---|
className? | string | Overrides or extends the styles applied to the component. Default null |
content? | SCPurchasableContent | Purchasable Content |
contentId? | string | number | Content id |
contentType | SCContentType | Content type |
label? | ReactNode | Overrides the button label. Default null |
onPurchase? | (contentType , id ) => any | onPurchase callback |
PaymentOrderPdfButtonComponentProps? | PaymentOrderPdfButtonProps | Props to spread to the PaymentOrderPdfButton component Default {} |
prefetchedProducts? | SCPaymentProduct [] | Prefetched products |
showTicket? | boolean | show 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 Name | Global class | Description |
---|---|---|
root | .SCBuyButton-root | Styles applied to the root element. |
Parameters
Parameter | Type | Description |
---|---|---|
inProps | BuyButtonProps |
Returns
Element