ant-design / pro-editor

🕹️ The Ultimate Editor UI Framework and Components
https://pro-editor.antdigital.dev
MIT License
189 stars 23 forks source link
antd editor pro-components

ProEditor

The Ultimate Editor UI Framework and Components [![][npm-release-shield]][npm-release-link] [![][npm-downloads-shield]][npm-downloads-link] [![][github-releasedate-shield]][github-releasedate-link] [![][github-action-test-shield]][github-action-test-link] [![][github-action-release-shield]][github-action-release-link] [![][codecov-shield]][codecov-link]
[![][github-contributors-shield]][github-contributors-link] [![][github-forks-shield]][github-forks-link] [![][github-stars-shield]][github-stars-link] [![][github-issues-shield]][github-issues-link] [![][github-license-shield]][github-license-link]
[![][ant-design-shield]][ant-design-link] [![][devops-dumi-shield]][devops-dumi-link] [![][devops-father-shield]][devops-father-link] English · [简体中文](./README.zh-CN.md) · [Changelog](./CHANGELOG.md) . [Report Bug][github-issues-link] · [Request Feature][github-issues-link] ![](https://gw.alipayobjects.com/zos/kitchen/2rXP4ZVHCo/pro-editor.webp)
Table of contents #### TOC - [📦 Installation](#-installation) - [Compile with Next.js](#compile-with-nextjs) - [🔨 Usage](#-usage) - [✨ Features](#-features) - [Empowering Features of ProEditor](#empowering-features-of-proeditor) - [Framework Architecture](#framework-architecture) - [👀 Showcase](#-showcase) - [🖥 Browser compatibility](#-browser-compatibility) - [⌨️ Local Development](#️-local-development) - [🤝 Contributing](#-contributing) - [🛣️ Ecosystem](#️-ecosystem) ####

📦 Installation

[!IMPORTANT]\ This package is ESM only.

To install @ant-design/pro-editor, run the following command:

$ pnpm install @ant-design/pro-editor

Compile with Next.js

[!NOTE]\ By work correct with Next.js SSR, add transpilePackages: ['@ant-design/pro-editor'] to next.config.js. For example:

const nextConfig = {
  transpilePackages: ['@ant-design/pro-editor', 'leva', 'zustand'],
};


🔨 Usage

import { SmileOutlined } from '@ant-design/icons';
import { ActionIcon } from '@ant-design/pro-editor';

export default () => (
  <ActionIcon
    title={'Function button description'}
    icon={<SmileOutlined />}
    onClick={() => {
      alert('Trigger action');
    }}
  />
);


✨ Features

[!NOTE]

Front-end component libraries have revolutionized development, boosting efficiency by orders of magnitude and elevating user experience. Yet, as mature as libraries like Ant Design (antd) and ProComponents are, one might wonder if there's any room left for innovation.


Empowering Features of ProEditor

[!NOTE]

We envision ProEditor as the foundational library for editing components, akin to antd, enabling developers to easily create complex interactive components with an inherently superior user experience. This is the rationale behind the ProEditor.

Our Principles for ProEditor:


UI Framework and Frontend Component Solutions in the Editor Field:

[!TIP]

ProEditor concentrates on expanding the limits of the feasible and augmenting the array of tools available to developers for the construction of sophisticated, interactive, and user-centric web applications. For instance:


Framework Architecture

ProEditor is structured to facilitate these principles effectively.


👀 Showcase

Let's showcase some of ProEditor's signature components:

DraggablePanel ColumnList
For resizable and movable panels A user-friendly sortable list based on column definitions
FreeCanvas IconPicker
A limitless zoomable canvas akin to Sketch or Figma An icon selection tool compatible with iconfont
Online Collaboration
Multi-user capabilities wrapped in yjs and zustand store.


🖥 Browser compatibility

[!NOTE]

edge Edge chrome safari electron_48x48
Edge last 2 versions last 2 versions last 2 versions last 2 versions


⌨️ Local Development

You can use Github Codespaces for online development:

Or clone it for local development:

$ git clone https://github.com/ant-design/pro-editor.git
$ cd pro-editor
$ pnpm install
$ pnpm dev


🤝 Contributing

[!IMPORTANT]

Join our collaborative ecosystem. Your contributions are the heartbeat of our project. Here's how you can be an integral part of our vibrant community:

Every contribution, big or small, is celebrated. Join us in our mission to refine and elevate the world of open-source enterprise UI components. 😃





🛣️ Ecosystem



📝 License

Copyright © 2023 - present AFX & Ant Digital.
This project is MIT licensed.