Giter Site home page Giter Site logo

wanghui2021 / pro-editor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ant-design/pro-editor

0.0 0.0 0.0 2.21 MB

Editor UI Components and Framework

Home Page: https://pro-editor.antdigital.dev

License: MIT License

Shell 0.02% JavaScript 8.86% TypeScript 91.12%

pro-editor's Introduction

Ant Design ProEditor

๐ŸŒŸ An Editor UI Framework and Components

Changelog ยท Report Bug ยท Request Feature

NPM version NPM downloads install size

Test CI status Deploy CI Coverage

contributors forks stargazers issues

 docs by dumi Build With father

๐Ÿ“ฆ Install

This component library is pure ESM.

Install via npm:

$ npm install @ant-design/pro-editor

Install via pnpm:

$ pnpm add @ant-design/pro-editor

๐Ÿ”จ 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');
    }}
  />
);

Adapt to NextJS

To adapt to nextjs's SSR mode, you need to add the relevant dependencies of this package to the transpilePackages configuration in next.config.js:

// next.config.js
const nextConfig = {
  // ...other config
  transpilePackages: ['@ant-design/pro-editor', 'leva'],
};

โŒจ๏ธ Development

$ git clone [email protected]:ant-design/pro-editor.git
$ cd pro-editor
$ npm install
$ npm start

Open your browser and visit http://localhost:8000

๐Ÿค Contributing PRs Welcome

๐Ÿ“Š Total: 7

๐Ÿ“ License

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

pro-editor's People

Contributors

actions-user avatar arvinxx avatar chenshuai2144 avatar meganjohnson96 avatar only-yours avatar rdmclin2 avatar semantic-release-bot avatar weipengzou avatar xlkang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.