Pixel UI/Get started

Installation

One script tag gets you every component. Or load only the ones you use: each single file pulls in the small shared engine by itself, once.

Script tag

Paste this once, anywhere on the page. Then use any tag from these pages.

<script src="https://cdn.jsdelivr.net/npm/piixpal@0.6/piixpal.min.js"></script>

Only what you use

Each component has its own file. They share one engine and one GPU context, however many you load.

<script src="https://cdn.jsdelivr.net/npm/piixpal@0.6/dist/c/glow-button.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/piixpal@0.6/dist/c/shader.min.js"></script>

npm

npm install piixpal
// once, in your entry file (main.js, layout.tsx, +layout.svelte…)
import "piixpal";

React, Vue, Svelte, Astro

They are standard web components, so they work in any framework without a wrapper. In React use className as usual; attributes are plain strings.

import "piixpal";

export default function Hero() {
  return (
    <piix-hero kind="aurora">
      <h1>Hello</h1>
      <piix-glow-button>Start</piix-glow-button>
    </piix-hero>
  );
}

Browser support