@whitewizard/radio

Radio UI

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@whitewizard/radio
1.6.102 months ago5 years agoMinified + gzip package size for @whitewizard/radio in KB

Readme

Radio player UI

Release

  • npm install
  • npm run build

Usage

  • npm install --save @whitewizard/radio
  • For independent install:
* `import { createComponent } from '@whitewizard/radio'`
* `createComponent(<HTMLElement>element, <Object>props)`
* dist/radio.css will have to be required separately
  • For usage in Vue.js environment:
* `import { component } from '@whitewizard/radio'` or `import component from '@whitewizard/radio/src/radio.vue'`
  • Props:
* `isPopup`: `<Boolean>` - desktop only
* `language`: `<String>{et|en|ru}` - set UI language
* `environment`: `<String>{mobile|desktop}`
* `radios`: `<Array>` - array of radios to be shown. First element defines which radio to show as active after mount.