Holo input
A text field projected like a HUD.
<piix-holo-input>DOM + canvasForm-readyNew<piix-holo-input label="Callsign" style="width:340px"></piix-holo-input>
Hue
A translucent field: targeting brackets lock onto it when focused, a scan line sweeps across, the label lifts into a readout, and every keystroke blips a character up out of the field. A real input underneath.
Installation
<!-- once, anywhere on the page: every component --> <script src="https://cdn.jsdelivr.net/npm/piixpal@0.6/piixpal.min.js"></script>
<!-- just holo input (the shared engine loads itself, once) --> <script src="https://cdn.jsdelivr.net/npm/piixpal@0.6/dist/c/holo-input.min.js"></script>
npm install piixpal // once, in your entry file import "piixpal";
// npm install piixpal
import "piixpal";
export default function Page() {
return (
<piix-holo-input label="Callsign" style="width:340px"></piix-holo-input>
);
}
Usage
<piix-holo-input label="Callsign" style="width:340px"></piix-holo-input>
Examples
Password
<piix-holo-input label="Access code" type="password" hue="300" style="width:340px"></piix-holo-input>
API reference
| Attribute | What it does | Default |
|---|---|---|
label | the label | Input |
name, type, value, placeholder, required, autocomplete | as on <input> | – |
hue | the projector colour, 0 to 360 | 190 |
Events
| Event | When |
|---|---|
input | as you type |
change | when the value is committed |
Accessibility
- A real input with a real label: autofill, forms and validation all work.
- Blips and sweeps are decoration; with reduced motion they stop.