@lightningjs/solid-ui

0.18.15 • Public • Published

Solid UI

This library contains shared Lightning/Solid components

Quick Start

If you haven't already, follow the steps found here to bootstrap your lightningjs/solid app.

  1. install this package and the base theme with your package manager of choice
npm i @lightningjs/solid-ui @lightningjs/l3-ui-theme-base # or pnpm/yarn
  1. add the theme package as an alias in your vite config
// vite.config.js
  resolve: {
    alias: {
      theme: '@lightningjs/l3-ui-theme-base',
    }
  },
  1. add the stateMapperHook to your lightningjs/solid Config
// index.jsx
import { mapToneToStateHook } from '@lightningjs/solid-ui';
Config.stateMapperHook = mapToneToStateHook;
  1. and finally, use a component
// App.jsx
import { Button } from '@lightningjs/solid-ui';
<App>
  <Button>a button!</Button>
</App>;

Readme

Keywords

none

Package Sidebar

Install

npm i @lightningjs/solid-ui

Weekly Downloads

327

Version

0.18.15

License

Apache-2.0

Unpacked Size

2.22 MB

Total Files

132

Last publish

Collaborators

  • foxtrotwhiskey9
  • uguraslan
  • michielvandergeest
  • erikhaandrikman
  • wouterlucas
  • jfboeve
  • erautenberg
  • anthony9187