Skip to content

yi-gu/ui-element-samples

 
 

Repository files navigation

UI Elements

A collection of UI element samples written with vanilla web platform features.

Please note: these are prototypes, and not production-ready. The aim is to demonstrate a solid approach for building performant UI elements.

Getting started

  1. Clone the repo.
  2. Open an element's subfolder.
  3. Run index.html

ES2015 and ES5 Transpilation

Please note: these samples are written in ES2015 and, as such, require direct browser support. You can transpile the examples with BabelJS:

babel --presets=es2015 swipeable-cards/cards.js --out-file swipeable-cards/cards-es5.js
babel --presets=es2015 side-nav/side-nav.js --out-file side-nav/side-nav-es5.js

But to keep things as simple as possible for everyone, that's out of scope for this set of samples.

License

Copyright 2015 Google, Inc.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Please note: this is not a Google product

About

A collection of prototyped UI elements

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 68.6%
  • HTML 21.3%
  • CSS 9.7%
  • Python 0.4%