Example Guide

Add an example

  • Add a file newExample.we copied from template with UI Gallery (recommended).
  • In index.we, add an item {name: 'newExample', title: 'New Example'} for array data.cases


  1. File name is dash (-) separated words, and each word is lower case, e.g. index.we, style-demo.we
  2. DO NOT use builtin components name as file name, it may fail to run.

UI Gallery

Inspired by Bootstrap.

We import a simple UI Gallery for a consistent UI style. See UI Gallery Example for details.

Reference: https://www.npmjs.com/package/weex-components