Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="bx--form-item">
	<div data-numberinput class="
    bx--number
    
     bx--number--mobile 
    ">
		<label for="mobile-number-input0" class="bx--label">Number input label</label>
		<div class="bx--number__input-wrapper">
			<button aria-label="decrease number input" class="bx--number__control-btn down-icon" type="button" aria-live="polite" aria-atomic="true">
        <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox="0 0 8 4" aria-hidden="true"><path d="M8 0L4 4 0 0z"></path></svg>
      </button>
			<input id="mobile-number-input0" type="number" pattern="\d*" min="0" max="100" value="1">
			<button aria-label="increase number input" class="bx--number__control-btn up-icon" type="button" aria-live="polite" aria-atomic="true">
        <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox="0 0 8 4" aria-hidden="true"><path d="M0 4l4-4 4 4z"></path></svg>
      </button>
		</div>
	</div>
</div>

<div class="bx--form-item">
	<div data-invalid data-numberinput class="
    bx--number
    
     bx--number--mobile 
  ">
		<label for="mobile-number-input1" class="bx--label">Number input label</label>
		<div class="bx--number__input-wrapper">
			<button aria-label="decrease number input" class="bx--number__control-btn down-icon" type="button" aria-live="polite" aria-atomic="true">
        <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox="0 0 8 4" aria-hidden="true"><path d="M8 0L4 4 0 0z"></path></svg>
      </button>
			<input id="mobile-number-input1" type="number" pattern="\d*" min="0" max="100" value="1" role="alert" aria-atomic="true">
			<button aria-label="increase number input" class="bx--number__control-btn up-icon" type="button" aria-live="polite" aria-atomic="true">
        <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox="0 0 8 4" aria-hidden="true"><path d="M0 4l4-4 4 4z"></path></svg>
      </button>
		</div>
		<div class="bx--form-requirement">
			Invalid number
		</div>
	</div>
</div>

<div class="bx--form-item">
	<div data-invalid data-numberinput class="
      bx--number
      
       bx--number--mobile 
      bx--number--nolabel
    ">
		<div class="bx--number__input-wrapper">
			<button aria-label="decrease number input" class="bx--number__control-btn down-icon" type="button" aria-live="polite" aria-atomic="true">
        <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox="0 0 8 4" aria-hidden="true"><path d="M8 0L4 4 0 0z"></path></svg>
      </button>
			<input id="mobile-number-input2" type="number" pattern="\d*" min="0" max="100" value="1" role="alert" aria-atomic="true">
			<button aria-label="increase number input" class="bx--number__control-btn up-icon" type="button" aria-live="polite" aria-atomic="true">
        <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox="0 0 8 4" aria-hidden="true"><path d="M0 4l4-4 4 4z"></path></svg>
      </button>
		</div>
		<div class="bx--form-requirement">
			Invalid number
		</div>
	</div>
</div>

<div class="bx--form-item">
	<div data-numberinput class="
    bx--number
    
     bx--number--mobile 
    bx--number--helpertext
  ">
		<label for="mobile-number-input3" class="bx--label">Number input label</label>
		<div class="bx--form__helper-text">
			Optional helper text here; if message is more than one line text should wrap (~100 character count maximum)
		</div>
		<div class="bx--number__input-wrapper">
			<button aria-label="decrease number input" class="bx--number__control-btn down-icon" type="button" aria-live="polite" aria-atomic="true">
        <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox="0 0 8 4" aria-hidden="true"><path d="M8 0L4 4 0 0z"></path></svg>
      </button>
			<input id="mobile-number-input3" type="number" pattern="\d*" min="0" max="100" value="1">
			<button aria-label="increase number input" class="bx--number__control-btn up-icon" type="button" aria-live="polite" aria-atomic="true">
        <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox="0 0 8 4" aria-hidden="true"><path d="M0 4l4-4 4 4z"></path></svg>
      </button>
		</div>
	</div>
</div>

<div class="bx--form-item">
	<div data-invalid data-numberinput class="
    bx--number
    
     bx--number--mobile 
    bx--number--helpertext
  ">
		<label for="mobile-number-input4" class="bx--label">Number input label</label>
		<div class="bx--form__helper-text">
			Optional helper text here; if message is more than one line text should wrap (~100 character count maximum)
		</div>
		<div class="bx--number__input-wrapper">
			<button aria-label="decrease number input" class="bx--number__control-btn down-icon" type="button" aria-live="polite" aria-atomic="true">
        <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox="0 0 8 4" aria-hidden="true"><path d="M8 0L4 4 0 0z"></path></svg>
      </button>
			<input id="mobile-number-input4" type="number" pattern="\d*" min="0" max="100" value="1" role="alert" aria-atomic="true">
			<button aria-label="increase number input" class="bx--number__control-btn up-icon" type="button" aria-live="polite" aria-atomic="true">
        <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox="0 0 8 4" aria-hidden="true"><path d="M0 4l4-4 4 4z"></path></svg>
      </button>
		</div>
		<div class="bx--form-requirement">
			Invalid number
		</div>
	</div>
</div>
              
            
!

CSS

              
                .bx--form-item {
	margin-bottom: 2rem;
}
              
            
!

JS

              
                
              
            
!
999px

Console