Web Components for mobile devices based on React.
JavaScript CSS HTML
Permalink
Failed to load latest commit information.
dist bump v1.0.0 Aug 18, 2016
docs
examples/server-rendering [*] add `.woff2` and remove `.svg` format icon font for compatibility… Jul 11, 2016
fonts [*] add `.woff2` and remove `.svg` format icon font for compatibility… Jul 11, 2016
js [*] improve `component` PropTypes for Col, fixes #98 's error log Nov 7, 2016
kitchen-sink [*] improve `component` PropTypes for Button, Icon, Badge, fixes #106 Nov 7, 2016
scripts [*] DIY babel require ignore configure Jul 2, 2016
scss fixes typo Jul 13, 2016
.babelrc [*] add babel `add-module-exports` plugin Jun 29, 2016
.editorconfig upgrade normalize.css to v4.1.1 Jun 21, 2016
.eslintignore hello world Oct 28, 2015
.eslintrc hello world Oct 28, 2015
.gitignore [+] add server rendering example Jul 1, 2016
.npmignore ignore `ISSUE_TEMPLATE.md` in npm package Jul 5, 2016
.travis.yml [*] travis-ci node version: 6 and latest stable Nov 7, 2016
CHANGELOG.md add v1.0.0 change log Aug 18, 2016
ISSUE_TEMPLATE.md update issue template Apr 19, 2016
LICENSE.md hello world Oct 28, 2015
README.md replace Browserify with Webpack for docs & kitchen sink bundling Jun 29, 2016
bower.json
gulpfile.babel.js [*] DIY babel require ignore configure Jul 2, 2016
package.json [*] upgrade react-router to v3.0.0, resolves #112 Nov 7, 2016
webpack.config.js [*] DIY babel require ignore configure Jul 2, 2016
webpack.docs.babel.js [*] add `.woff2` and remove `.svg` format icon font for compatibility… Jul 11, 2016

README.md

Amaze UI Touch

基于 React.js 的移动端 Web UI 组件库。

NPM version Build Status Dependency Status devDependency Status

入门套件

简介

专属于移动

Amaze UI Touch 专为移动打造,在技术实现、交互设计上只考虑主流移动设备,保证代码轻、性能高。

专注于 UI

只提供 UI 组件(View),对配套技术不做限定,方便用户与现有技术栈快速整合,降低使用成本。

采用 Flexbox

使用 Flexbox 技术,灵活自如地对齐、收缩、扩展元素,轻松搞定移动页面布局。

基于 React.js

基于风靡社区的 React.js 封装组件,沿袭高性能、可复用、易扩展、一处学习多端编写特性。

安装使用

  1. 从 npm 安装:

    npm install --save-dev amazeui-touch
  2. 使用 组件:

    class App extends React.Component {
      constructor(props) {
        super(props);
        this.state = {
          said: false,
        };
    
        this.handleClick = this.handleClick.bind(this);
      }
    
      handleClick() {
        this.setState({
          said: true,
        });
      }
    
      renderHello() {
        return this.state.said ? (
          <p>Hello World! Welcome to Amaze UI Touch.</p>
        ) : null;
      }
    
      render() {
        const said = this.state.said;
        const text = said ? 'Said :(' : 'Say hello :)';
    
        return (
          <div>
            <Button
              amStyle="primary"
              disabled={said}
              onClick={this.handleClick}
            >
              {text}
            </Button>
            {this.renderHello()}
          </div>
        );
      }
    }
    
    ReactDOM.render(<App />, document.getElementById('root'));

ES2015/JSX 编译参见 Amaze UI Touch Starter Kit

开发及演示

文档及演示

  1. 全局安装 gulp.js:

    npm install -g gulp
  2. 克隆源代码并安装依赖:

    git clone https://github.com/amazeui/amazeui-touch.git

    在源码目录下执行:

    npm install
  3. 启动开发服务:

    npm start

    相关文件构建完成后会自动打开浏览器,可查看文档及组件演示。

构建

npm run build

打包后的文件位于 dist 目录下。

反馈建议

License

MIT © 2015 - 2016 AllMobilize Inc.