Pixel UI/Forms/Input

Input

A text field whose pixel border lights up as you type.

<piix-input>WebGLForm-ready
Email
Look
Palette

A dark pixel field. Focus it and light starts running round its border; every key sends a little ring out from the caret. Whatever you put inside is its label.

Installation

<!-- once, anywhere on the page: every component -->
<script src="https://cdn.jsdelivr.net/npm/piixpal@0.6/piixpal.min.js"></script>

Usage

<piix-input name="email" type="email" placeholder="you@site.com">Email</piix-input>

Examples

Looks

One attribute changes the whole style. Glass blurs whatever is behind it, so it shines over a scene or a photo.

Email Email Email Email Email

A sign-up form

Name Email Join

API reference

AttributeWhat it doesDefault
lookglow chrome glass riso crt: the whole style. See Looksglow
name, type, value, placeholder, required, disabled, autocomplete, maxlengththe same as on an <input>–
palettethe colours: lime aurora sunset ocean candy violet fire gameboy paper mono, or your own, dark to light: "#000,#6b4cff,#fff"lime
pixelsize of one pixel, in px3

Events

EventWhen
inputevery keystroke
changewhen the value is committed

Accessibility