Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!doctype html>
<head>
  <meta charset="utf-8">
  <base href="https://polygit.org/components/">
  <script src="webcomponentsjs/webcomponents-lite.min.js"></script>
  <link href="polymer/polymer.html" rel="import">
  <link href="iron-flex-layout/iron-flex-layout.html">
  <link href="paper-menu/paper-menu.html" rel="import">
  <link href="paper-item/paper-item.html" rel="import">
  <link href="paper-input/paper-input.html" rel="import"> 
</head>
<body>
<dom-module id="x-element">
<template>
  <style>
    
    paper-input {
      width: 25px;
    }
    
    .inline, paper-item {
      display: inline;
    }
    
    .horizontal {
      @apply(--layout-horizontal);
    }
    
  </style>
  <div class="horizontal">
    <paper-menu class="inline">
      <paper-item>Item 1</paper-item>
      <paper-item>Item 2</paper-item>
    </paper-menu>
    <paper-input label="text input"></paper-input>
  </div>
</template>
<script>
  (function(){
    Polymer({
      is: "x-element",
      properties: {},
    });
  })();
</script>
</dom-module>
<x-element></x-element>
</body>
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
hunex91pro
0viewers