cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <!--Select Drop Down-->
<div class="row">
 <ha-select placeholder="Choose an item" label="Some label">
  <ha-item value="AppleValue">
    Apple
  </ha-item>
  <ha-item value="BananaValue">
    Banana
  </ha-item>
  <ha-item value="BalloonValue">
    Balloon
  </ha-item>
  <ha-item value="MelonValue">
    Melon
  </ha-item>
</ha-select>
</div>


<!--Select Drop Down with Type Ahead-->

<!--Radio Buttons-->
<div class="row">
<ha-radio-button-group label="Some label" name="radioWithName"> 
  <ha-radio-button label="Radio 1" value="1" checked></ha-radio-button>   
  <ha-radio-button label="Radio disabled" value="2" disabled></ha-radio-button>   
  <ha-radio-button label="Radio 3" value="3"></ha-radio-button>
</ha-radio-button-group>
</div>
  
<!--Checkboxes-->
<div class="row">
<ha-checkbox-group name="Checkbox Group" label="Checkbox Group">   
  <ha-checkbox label="Enabled checkbox" checked></ha-checkbox>   
  <ha-checkbox label="Disabled checkbox (default checked)" disabled checked></ha-checkbox> 
  <ha-checkbox label="Disabled checkbox"disabled></ha-checkbox>   
  <ha-checkbox label="Checkbox"readonly></ha-checkbox> 
</ha-checkbox-group>
</div>

<!--segmented buttons-->
<div class="row">
<ha-segmented-button selectedindex="0" value="credit" class="ha-a11y-focus">   
  <button value="credit" title="Credit" class="ha-button" aria-pressed="true">Credit / Debit</button>   
  <button value="cash" title="Cash" class="ha-button" aria-pressed="false">Cash</button>   
  <button value="check" title="Check" class="ha-button" aria-pressed="false">Check</button> 
</ha-segmented-button>
</div>
  
<!--Switch Button-->
<div class="row">
  <ha-switch-button checked="true" name="switchName"></ha-switch-button>
</div>
            
          
!
            
              require([
    "hui-lib"
], function() {
  require([
    // Add components you use here
    "hui/select", "hui/item", "hui/radio-button", "hui/radio-button-group", "hui/checkbox-group", "hui/switch-button", "hui/segmented-button"
  ], function() {
    // Add any code here
    
    console.log("Harmony UI Components is loaded!");
  });
});

            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console