🚧 Work in Progress: The cre8 Web Components library is currently in its early foundational stages. These components are not recommended for production usage yet.
cre8 Web Components provides presentational user interface (UI) reusable components to be consumed by any codebase. It's built using web components that are based on existing, native HTML web standards.
The following dependencies are required for running this project locally:
- pnpm
- Node 18+
- Component files are built using TypeScript and the Lit library's templating system
lit-html
cre8 Web Components builds out base reusable components as web components. It also creates React wrappers from those components. Your usage will depend on if your project is using web components or the React framework.
- Install the package and the dependencies:
pnpm i @cre8_dev/cre8-wc
- Import it at the top of your file, then call the component where needed:
import { cre8-component-name } from "@cre8/cre8-wc";
A Next.js demonstration app showcasing how AI Elements can work alongside cre8-react components. The demo includes:
- AI chat interface using the Vercel AI SDK
- Integration with AI Elements components
- Examples of using cre8-react alongside modern AI components
Quick Start:
# From the repository root
cd apps/ai-elements-demo
cp .env.example .env.local
# Add your OpenAI API key or AI Gateway key to .env.local
pnpm ai-demo:devSee the AI Elements Demo README for detailed documentation.
To run the cre8 Web Component Storybook
- Run
pnpm install. If you run into timeout issues, runpnpm install --network-timeout 10000000 - Run
cd packages/cre8-wc && pnpm startto run the cre8 Web Components Storybook. - Run
pnpm buildto build the transpiled web components