Pixel UI/Buttons/Pixel button

Pixel button

A chunky pixel button that presses down into its shadow, with a pal on top.

<piix-button>DOM + canvasForm-ready
Get started
Tone
Size
Pal

Stepped pixel corners, an ink frame and a hard shadow it sinks into when pressed. Hover sends a puff of pixels off its corners. Give it a pal and a little character sits on its top edge, looks round when you hover, and hops when you click.

Installation

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

Usage

<piix-button pal="bitbug">Get started</piix-button>

Examples

Tones

Lime Coral Violet Sky Ink

With a pal

Deploy Subscribe

Disabled

Not yet

API reference

AttributeWhat it doesDefault
tonelime coral violet sky sun mint ink paperlime
sizesm md lgmd
pala pal to sit on top: bitbug, pip, frog, kitty…–
typebutton submit resetbutton
disabledgreyed out–

Events

EventWhen
clicklike any button

Accessibility