MCPcopy Index your code
hub / github.com/GoogleChromeLabs/ui-element-samples

github.com/GoogleChromeLabs/ui-element-samples @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
482 symbols 884 edges 69 files 35 documented · 7% 11 cross-repo links updated 28d ago★ 4,12228 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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

Core symbols most depended-on inside this repo

Shape

Method 277
Function 114
Class 91

Languages

TypeScript100%
Python1%

Modules by API surface

stream-progress/third_party/transformstream.js54 symbols
infinite-scroller/es6-promise.js43 symbols
3d-card-flip/inert.js35 symbols
flip-switch/flip-switch.js16 symbols
side-nav/side-nav.js14 symbols
animated-clip/menu.js14 symbols
animated-blur/scripts/animated_blur.js14 symbols
accordion/sc-accordion.js13 symbols
animated-clip/advanced/expando.js12 symbols
swipeable-cards/cards.js11 symbols
service-worker/app/static/sc-view.js11 symbols
service-worker/app/static/sc-router.js11 symbols

Dependencies from manifests, versioned

babel-cli6.26.0 · 1×
babel-core6.25.0 · 1×
babel-plugin-transform-es2015-modules-commonjs6.26.0 · 1×
cpx1.5.0 · 1×
del3.0.0 · 1×
dot1.0.3 · 1×
escape-string-regexp1.0.5 · 1×
express4.16.2 · 1×
firebase4.9.0 · 1×
firebase-functions0.8.1 · 1×
firebase-tools3.17.4 · 1×
glob7.1.2 · 1×

For agents

$ claude mcp add ui-element-samples \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page