Skip to content

Comments

Add PC component library (Lite version)#1

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/add-pc-lite-version-components
Draft

Add PC component library (Lite version)#1
Copilot wants to merge 3 commits intomainfrom
copilot/add-pc-lite-version-components

Conversation

Copy link

Copilot AI commented Jan 26, 2026

Implements a lightweight PC component library for MyBricks low-code platform. Provides essential UI components with zero external dependencies beyond React.

Components

  • Text: Display component with click events and i18n support
  • Button: 5 style variants (primary, default, dashed, text, link) with disabled state
  • Input: Text input with change/blur events and placeholder support

Architecture

  • TypeScript-first with full type definitions
  • Zero dependencies (React only)
  • MyBricks runtime interface compatible
  • Component structure: com.json (metadata) + data.json (defaults) + runtime.tsx (implementation)

Example component usage in MyBricks:

// Text component
{
  inputs: { content: (value) => setText(value) },
  outputs: { click: () => handleClick() }
}

// Button component  
{
  inputs: { setText, setDisabled },
  outputs: { click }
}

Files

├── mybricks.json          # Library configuration
├── package.json           # React dependencies only
├── tsconfig.json          # TypeScript config
├── typings.d.ts          # MyBricks runtime types
└── src/
    ├── text/             # Text display component
    ├── button/           # Button component
    └── input/            # Input component
Original prompt

PC常规(Lite)版本组件库


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits January 26, 2026 09:32
Co-authored-by: CheMingjun <18278955+CheMingjun@users.noreply.github.com>
Co-authored-by: CheMingjun <18278955+CheMingjun@users.noreply.github.com>
Copilot AI changed the title [WIP] Add PC Lite version component library Add PC component library (Lite version) Jan 26, 2026
Copilot AI requested a review from CheMingjun January 26, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants