Skip to content

tmorrowdev/Cre8-Components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚧 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 (Beta)

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.

Dependencies

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

How to Use Components in Your Projects

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.

Using components in cre8-wc

  1. Install the package and the dependencies:
pnpm i @cre8_dev/cre8-wc
  1. Import it at the top of your file, then call the component where needed:
import { cre8-component-name } from "@cre8/cre8-wc";

Demo Applications

AI Elements Demo

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:dev

See the AI Elements Demo README for detailed documentation.

Storybook

How to Run Storybook:

MAC

To run the cre8 Web Component Storybook

  1. Run pnpm install. If you run into timeout issues, run pnpm install --network-timeout 10000000
  2. Run cd packages/cre8-wc && pnpm start to run the cre8 Web Components Storybook.
  3. Run pnpm build to build the transpiled web components

About

No description, website, or topics provided.

Resources

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •