@vtex/buy-button

0.1.21 • Public • Published

BuyButton

BuyButton is a canonical component that any VTEX store can install.

Disclaimer

This component still under construction. Everything may - and will - break. Use with caution, and avoid for now its use in Production projects.

Install

yarn add @vtex/buy-button
# or
npm install @vtex/buy-button

Configuration

/**
 * The quantity of products to be added to the cart
 */
- quantity
  - Type: Number

/**
 * The specification of which product will be added to the cart.
 */
- skuId
  - Type: Number

/**
 * Which seller is being referenced by the button.
 */
- seller
  - Type: String

/**
 * Sales channel.
 */
- salesChannel
  - Type: String

/**
 * Graphql property to call a mutation.
 */
- mutate
  - Type: Function

/**
 * Function that will be called after the mutation.
 */
- afterClick
  - Type: Function

/**
 * The user's cart id
 */
- orderFormId
  - Type: String

Readme

Keywords

none

Package Sidebar

Install

npm i @vtex/buy-button

Weekly Downloads

1

Version

0.1.21

License

ISC

Unpacked Size

106 kB

Total Files

6

Last publish

Collaborators

  • vtexlab-user
  • lbebber
  • alcar
  • arturpimentel
  • felippenardi
  • alinevillaca
  • caio.oliveira
  • victorges
  • guilhermebruzzi
  • cmdalbem
  • iago
  • ntmedina
  • salesfelipe
  • diegoximenes
  • andreldsa
  • jgfidelis
  • vcalasans
  • thiagomurakami
  • marcoskwkm
  • lurian
  • rogerlucena
  • arthurepc
  • igorframos
  • gustavorosolem
  • analuizamtg
  • rafarubim
  • tergol
  • rafabac
  • bivillar
  • breno
  • guigs
  • daher
  • lucasecdb
  • victorhmp
  • marcosvcp
  • jeymisson
  • natalia_godot
  • tiagonapoli
  • r-araripe
  • augusto.lazaro
  • kaisermann
  • ericreis
  • athoscouto
  • tlgimenes
  • anitavincent
  • brunojdo
  • firstdoit
  • augustob
  • afonsopraca
  • amoreira
  • nandoacoelho
  • kevinchevallier
  • talitagaldino