@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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.90latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.90
0.0.80
0.0.70
0.0.60
0.0.50
0.0.40
0.0.20
0.0.10

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