@vip3/vip3-benefit-widget
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

VIP3 Benefit Widget

Installation

# yarn 
yarn add @vip3/vip3-benefit-widget

# npm
npm install add @vip3/vip3-benefit-widget

Quickstart

import { VIP3Widget, LANG, THEME } from '@vip3/vip3-benefit-widget'

// in VUE
<VIP3Widget
  benefit-id={'benefitId'}
  lang={LANG.ZH}
  theme={THEME.Dark}
  open={true}
  @close={() => {
    // close Callback
  }}
/>

// in TSX
<VIP3Widget
  benefitId={'benefitId'}
  lang={LANG.ZH}
  theme={THEME.Dark}
  open={true}
  onClose={() => {
    // close Callback
  }}
/>

props

benefitId
Specify the benefit information to be loaded in widget
benefit Id: string

lang
The widget language
lang: enum LANG

LANG.EN | LANG.EN


theme
The widget UI Color theme
theme: enum THEME

THEME.Dark | THEME.Light


open
If true, the widget is shown.
open: boolean

onClose
Callback fired when the widget requests to be closed.
open: func

Readme

Keywords

none

Package Sidebar

Install

npm i @vip3/vip3-benefit-widget

Weekly Downloads

0

Version

0.0.9

License

none

Unpacked Size

107 kB

Total Files

6

Last publish

Collaborators

  • vip3