Codex Marketplace UI components resuable for the Codex decentralized storage network. https://storybook.codex.storage
Go to file
Arnaud b4d2072d49
Merge pull request #6 from codex-storage/add-events-to-storybook
Add events to be tracked by the Storybook while interacting with the …
2024-08-22 20:07:51 +02:00
.storybook Normalize structure by moving components to src folder and update build process 2024-08-21 17:14:40 +02:00
src Add events to be tracked by the Storybook while interacting with the components 2024-08-22 20:04:24 +02:00
stories Add events to be tracked by the Storybook while interacting with the components 2024-08-22 20:04:24 +02:00
.gitignore Normalize structure by moving components to src folder and update build process 2024-08-21 17:14:40 +02:00
README.md Normalize structure by moving components to src folder and update build process 2024-08-21 17:14:40 +02:00
package-lock.json Add table component 2024-08-22 17:07:05 +02:00
package.json Add table component 2024-08-22 17:07:05 +02:00
tsconfig.app.json Normalize structure by moving components to src folder and update build process 2024-08-21 17:14:40 +02:00
tsconfig.build.json Normalize structure by moving components to src folder and update build process 2024-08-21 17:14:40 +02:00
tsconfig.json Normalize structure by moving components to src folder and update build process 2024-08-21 17:14:40 +02:00
tsconfig.node.json Normalize structure by moving components to src folder and update build process 2024-08-21 17:14:40 +02:00
vite-env.d.ts Change build instructions 2024-08-20 15:57:59 +02:00
vite-storybook.config.ts Normalize structure by moving components to src folder and update build process 2024-08-21 17:14:40 +02:00
vite.config.ts Normalize structure by moving components to src folder and update build process 2024-08-21 17:14:40 +02:00

README.md

Codex Marketplace Components

This project provide UI components for Codex Marketplace.
It's in pre-alpha version, the API will change.

Philosophy

This CSS is written with semantic style. For more details check this link.

The components are designed for Codex Marketplace but they can be customized with CSS variables at the global level or at the component level (class or style).

Prerequisites

  • Node 18+

Install

Run the npm install command:

npm install

Run

npm run storybook

Build

Storybook

npm run build-storybook

The files are generated under the folder storybook-static.

You can preview by using the command:

npm run preview

Components

In order to build the components library you need for to clone the Codex SDK (it's currently in early stage so it is not published yet to the npm registry).

Follow the instructions to install and build the SDK, then run this command in the SDK repository:

npm link

Now in the current repository, you'll we able to link your local SDK build by running:

npm link @codex/sdk-js

You can finally build the Components by running:

npm run build