0.0.9 • Published 10 months ago

@vip3/vip3-benefit-widget v0.0.9

Weekly downloads
-
License
-
Repository
-
Last release
10 months ago

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
0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago