@e-llm-studio/ecg-core
v0.0.5
Published
Reusable React components for eCG experiences.
Maintainers
Keywords
Readme
@e-llm-studio/ecg-core
Reusable React components for eCG experiences. The package owns presentation-only components; CW Core continues to own session, authentication, routing, API, and microfrontend-event orchestration.
Public components
EcgReusableButtonand the legacy-compatibleReusableButtonAccordionprimitivesDialogprimitivesPromptGenieMenuButtonRestartConfirmationDialogandRestartExecutionPlanPopupEcgProNewChatWelcomeStreamLineBrainSpanGroupWidthProviderandWidthSyncedWrapperWorkflowReadOnlyBoundary
Workspace setup
The repository already includes packages/frontend/features/* in pnpm-workspace.yaml, so no workspace configuration is required.
pnpm install
pnpm lib list
pnpm lib build ecg-core
pnpm lib check ecg-coreFor development, run the library watcher and CW Core in separate terminals:
pnpm lib dev ecg-core
pnpm cw:devThe watcher rebuilds the package JavaScript as component source changes.
Installation
Workspace consumers should declare:
"@e-llm-studio/ecg-core": "workspace:*"Published consumers can install it with:
pnpm add @e-llm-studio/ecg-coreThe components use Tailwind utility classes. Add the built package to the consuming application's Tailwind content configuration:
content: [
"./src/**/*.{js,ts,jsx,tsx}",
"./node_modules/@e-llm-studio/ecg-core/dist/**/*.{js,mjs,cjs}",
];Usage
import { EcgReusableButton } from "@e-llm-studio/ecg-core";
<EcgReusableButton
label="Continue"
startIcon="SPARKLES"
onClick={() => console.log("continue")}
/>;The component supports contained, outlined, and text variants; small, medium, and large sizes; semantic colors; optional icons; loading, disabled, tooltip, and icon-only states; and standard HTML button props.
Package validation
pnpm lib check ecg-core
pnpm lib build ecg-core
pnpm lib pack ecg-core
pnpm cw:build