@alien-id/ui-kit-react
v0.3.0
Published
UI components for Alien miniapps.
Downloads
1,044
Readme
@alien-id/ui-kit-react
UI components for Alien miniapps.
Installation
bun add @alien-id/ui-kit-react
# or
npm install @alien-id/ui-kit-reactImport styles in your app entry:
import "@alien-id/ui-kit-react/styles.css";Storybook
Browse all components and their variants in the live Storybook:
https://main.d1duwphdfo3vec.amplifyapp.com
To run Storybook locally:
npm run storybookComponents
Buttons — Primary, Secondary, Tertiary, Tinted variants
Input — Basic text input
FloatingLabelInput — Input with animated floating label
BottomSheet — Draggable bottom sheet built on vaul-base
PriceChart — Interactive area chart with period selection. Imported from a separate subpath so the rest of the kit stays importable in any environment:
import { PriceChart } from "@alien-id/ui-kit-react/chart"; import "@alien-id/ui-kit-react/chart.css";Its
@unovisdependency uses extensionless directory imports that Node's strict ESM rejects, so the chart must be consumed through a bundler (Vite, webpack, Next, esbuild) — raw Node ESM / non-transpiled SSR is unsupported. Quarantining it here keeps the main entry safe to import everywhere (the rest of the package tree-shakes on its own via per-module output, so this split is about ESM compatibility, not bundle size).
See the Storybook for live examples, props, and usage.
Theming
CSS custom properties are used for theming — see styles/global.css for available variables.
