Top Related Projects
A framework in react community ✨
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
The library for web and native user interfaces.
Deliver web apps with confidence 🚀
The Intuitive Vue Framework.
Laravel is a web application framework with expressive, elegant syntax. We’ve already laid the foundation for your next big idea — freeing you to create without sweating the small things.
Quick Overview
Ant Design Pro is an enterprise-level UI solution based on Ant Design, designed for complex admin interfaces. It provides a set of high-quality React components, pre-built templates, and development tools to help developers quickly build robust and scalable admin applications.
Pros
- Rich set of pre-built components and templates tailored for enterprise applications
- Seamless integration with Ant Design, providing a consistent and professional look
- Built-in support for internationalization and theming
- Comprehensive documentation and active community support
Cons
- Steep learning curve for developers new to React or Ant Design ecosystem
- Can be overkill for smaller projects or simple admin interfaces
- Opinionated structure may limit flexibility for highly customized designs
- Regular updates may require frequent maintenance of existing projects
Code Examples
- Creating a basic form using Ant Design Pro components:
import { Form, Input, Button } from 'antd';
const BasicForm = () => {
const [form] = Form.useForm();
const onFinish = (values) => {
console.log('Form values:', values);
};
return (
<Form form={form} onFinish={onFinish}>
<Form.Item name="username" rules={[{ required: true }]}>
<Input placeholder="Username" />
</Form.Item>
<Form.Item name="password" rules={[{ required: true }]}>
<Input.Password placeholder="Password" />
</Form.Item>
<Form.Item>
<Button type="primary" htmlType="submit">
Submit
</Button>
</Form.Item>
</Form>
);
};
- Implementing a data table with pagination:
import { Table } from 'antd';
const columns = [
{ title: 'Name', dataIndex: 'name', key: 'name' },
{ title: 'Age', dataIndex: 'age', key: 'age' },
{ title: 'Address', dataIndex: 'address', key: 'address' },
];
const DataTable = ({ data }) => {
return (
<Table
columns={columns}
dataSource={data}
pagination={{ pageSize: 10 }}
/>
);
};
- Using a pre-built dashboard component:
import { Statistic, Card, Row, Col } from 'antd';
import { ArrowUpOutlined, ArrowDownOutlined } from '@ant-design/icons';
const Dashboard = () => {
return (
<Row gutter={16}>
<Col span={12}>
<Card>
<Statistic
title="Active Users"
value={11.28}
precision={2}
valueStyle={{ color: '#3f8600' }}
prefix={<ArrowUpOutlined />}
suffix="%"
/>
</Card>
</Col>
<Col span={12}>
<Card>
<Statistic
title="Idle Users"
value={9.3}
precision={2}
valueStyle={{ color: '#cf1322' }}
prefix={<ArrowDownOutlined />}
suffix="%"
/>
</Card>
</Col>
</Row>
);
};
Getting Started
To start using Ant Design Pro, follow these steps:
-
Install the Ant Design Pro CLI:
npm i @ant-design/pro-cli -g
-
Create a new project:
pro create myproject
-
Navigate to the project directory and start the development server:
cd myproject npm start
This will set up a new Ant Design Pro project and start the development server. You can now begin building your admin interface using the pre-built components and templates provided by Ant Design Pro.
Competitor Comparisons
A framework in react community ✨
Pros of umi
- More lightweight and flexible, suitable for various project types
- Faster development and build times due to its plugin-based architecture
- Extensive plugin ecosystem for easy customization and feature addition
Cons of umi
- Less opinionated, requiring more configuration for complex projects
- Smaller community compared to Ant Design Pro
- Steeper learning curve for developers new to the umi ecosystem
Code Comparison
umi configuration:
export default {
routes: [
{ path: '/', component: '@/pages/index' },
{ path: '/users', component: '@/pages/users' },
],
plugins: ['@umijs/plugin-antd'],
};
Ant Design Pro configuration:
export default [
{
path: '/',
component: '../layouts/BasicLayout',
routes: [
{ path: '/', redirect: '/dashboard' },
{ path: '/dashboard', component: './Dashboard' },
],
},
];
umi focuses on a more flexible and plugin-based approach, while Ant Design Pro provides a more structured and opinionated setup out of the box. umi's configuration is generally simpler, but may require additional plugins for advanced features. Ant Design Pro includes more built-in components and layouts, making it easier to start with complex enterprise applications.
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
Pros of Vue
- Lightweight and fast, with a smaller bundle size
- More flexible and less opinionated, allowing for greater customization
- Easier learning curve for beginners
Cons of Vue
- Less comprehensive out-of-the-box solution for enterprise applications
- Smaller ecosystem compared to React-based solutions like Ant Design Pro
- Requires more setup and configuration for large-scale projects
Code Comparison
Vue component:
<template>
<div>{{ message }}</div>
</template>
<script>
export default {
data() {
return {
message: 'Hello, Vue!'
}
}
}
</script>
Ant Design Pro component (React-based):
import React from 'react';
const MyComponent = () => {
const message = 'Hello, Ant Design Pro!';
return <div>{message}</div>;
};
export default MyComponent;
Vue focuses on a template-based approach with a clear separation of concerns, while Ant Design Pro uses JSX syntax within React components. Vue's syntax is often considered more intuitive for beginners, but Ant Design Pro provides a more comprehensive solution for enterprise-level applications with pre-built components and layouts.
The library for web and native user interfaces.
Pros of React
- Widely adopted and supported by a large community
- Flexible and can be used for various types of applications
- Extensive ecosystem with numerous third-party libraries and tools
Cons of React
- Steeper learning curve for beginners
- Requires additional libraries for state management and routing
- More complex setup for larger applications
Code Comparison
React:
import React from 'react';
function App() {
return <h1>Hello, World!</h1>;
}
export default App;
Ant Design Pro:
import { PageContainer } from '@ant-design/pro-layout';
import { Card } from 'antd';
export default () => (
<PageContainer>
<Card>Hello, World!</Card>
</PageContainer>
);
Key Differences
- Ant Design Pro is built on top of React and provides a more opinionated structure
- Ant Design Pro includes pre-built components and layouts for rapid development
- React offers more flexibility but requires more setup for complex applications
- Ant Design Pro is specifically tailored for enterprise-level admin interfaces
Use Cases
- React: General-purpose web applications, single-page applications
- Ant Design Pro: Enterprise admin panels, dashboards, and data-heavy applications
Community and Support
- React: Massive community, extensive documentation, and third-party resources
- Ant Design Pro: Smaller but growing community, focused on enterprise solutions
Deliver web apps with confidence 🚀
Pros of Angular
- Comprehensive framework with built-in features for routing, forms, and HTTP client
- Strong TypeScript support and dependency injection system
- Large ecosystem and community support
Cons of Angular
- Steeper learning curve compared to Ant Design Pro
- More complex setup and configuration
- Potentially heavier bundle size for smaller applications
Code Comparison
Angular component:
@Component({
selector: 'app-root',
template: `<h1>{{ title }}</h1>`
})
export class AppComponent {
title = 'Hello, Angular!';
}
Ant Design Pro component (React):
import { PageContainer } from '@ant-design/pro-layout';
const Welcome: React.FC = () => {
return <PageContainer><h1>Welcome to Ant Design Pro</h1></PageContainer>;
};
export default Welcome;
Summary
Angular is a full-featured framework suitable for large-scale applications, offering robust tooling and a comprehensive ecosystem. Ant Design Pro, built on React, provides a more streamlined development experience with pre-built components and layouts, making it easier to create admin interfaces quickly. Angular's learning curve is steeper but offers more control, while Ant Design Pro emphasizes rapid development with less configuration overhead.
The Intuitive Vue Framework.
Pros of Nuxt
- More flexible and versatile, suitable for a wide range of Vue.js projects
- Better performance optimization with automatic code splitting and server-side rendering
- Larger community and ecosystem, with more plugins and modules available
Cons of Nuxt
- Steeper learning curve for beginners compared to Ant Design Pro
- Less opinionated, requiring more configuration and decision-making
- Fewer built-in UI components, may need additional libraries for complex interfaces
Code Comparison
Nuxt.js (pages/index.vue):
<template>
<div>
<h1>{{ title }}</h1>
<p>{{ description }}</p>
</div>
</template>
<script>
export default {
data() {
return {
title: 'Welcome to Nuxt',
description: 'A Vue.js framework'
}
}
}
</script>
Ant Design Pro (src/pages/Welcome.tsx):
import React from 'react';
import { PageContainer } from '@ant-design/pro-layout';
import { Card, Typography } from 'antd';
export default (): React.ReactNode => (
<PageContainer>
<Card>
<Typography.Title level={2}>Welcome to Ant Design Pro</Typography.Title>
<Typography.Paragraph>A React-based admin system</Typography.Paragraph>
</Card>
</PageContainer>
);
Laravel is a web application framework with expressive, elegant syntax. We’ve already laid the foundation for your next big idea — freeing you to create without sweating the small things.
Pros of Laravel
- Full-featured PHP web application framework with extensive documentation and community support
- Built-in tools for authentication, routing, and database management
- Elegant syntax and robust ecosystem of packages via Composer
Cons of Laravel
- Steeper learning curve for beginners compared to Ant Design Pro's React-based approach
- Less focus on UI components and pre-built layouts
- May require more setup and configuration for complex applications
Code Comparison
Laravel (routes/web.php):
Route::get('/', function () {
return view('welcome');
});
Ant Design Pro (src/pages/Welcome.tsx):
import { PageContainer } from '@ant-design/pro-components';
const Welcome: React.FC = () => {
return <PageContainer><h1>Welcome</h1></PageContainer>;
};
export default Welcome;
Laravel focuses on backend routing and view rendering, while Ant Design Pro provides a component-based approach for building user interfaces. Laravel's routing is more explicit, whereas Ant Design Pro relies on React's component structure for navigation. Both frameworks offer different strengths, with Laravel excelling in backend development and Ant Design Pro providing a rich set of UI components and layouts for rapid frontend development.
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual CopilotREADME
Language : ðºð¸ | ð¨ð³ | ð·ðº | ð¹ð· | ð¯ðµ | ð«ð· | ðµð¹ | ð¸ð¦ | ðªð¸
Ant Design Pro
- Preview: http://preview.pro.ant.design
- Home Page: http://pro.ant.design
- Documentation: http://pro.ant.design/docs/getting-started
- ChangeLog: http://pro.ant.design/docs/changelog
- FAQ: http://pro.ant.design/docs/faq
- Mirror Site in China: http://ant-design-pro.gitee.io
5.0 is out! ððð
Translation Recruitment :loudspeaker:
We need your help: https://github.com/ant-design/ant-design-pro/issues/120
Features
- :bulb: TypeScript: A language for application-scale JavaScript
- :scroll: Blocks: Build page with block template
- :gem: Neat Design: Follow Ant Design specification
- :triangular_ruler: Common Templates: Typical templates for enterprise applications
- :rocket: State of The Art Development: Newest development stack of React/umi/dva/antd
- :iphone: Responsive: Designed for variable screen sizes
- :art: Theming: Customizable theme with simple config
- :globe_with_meridians: International: Built-in i18n solution
- :gear: Best Practices: Solid workflow to make your code healthy
- :1234: Mock development: Easy to use mock development solution
- :white_check_mark: UI Test: Fly safely with unit and e2e tests
Templates
- Dashboard
- Analytic
- Monitor
- Workspace
- Form
- Basic Form
- Step Form
- Advanced From
- List
- Standard Table
- Standard List
- Card List
- Search List (Project/Applications/Article)
- Profile
- Simple Profile
- Advanced Profile
- Account
- Account Center
- Account Settings
- Result
- Success
- Failed
- Exception
- 403
- 404
- 500
- User
- Login
- Register
- Register Result
Usage
Use bash
We provide pro-cli to quickly initialize scaffolding.
# use npm
npm i @ant-design/pro-cli -g
pro create myapp
select umi version
ð Use umi@4 or umi@3 ? (Use arrow keys)
⯠umi@4
umi@3
If the umi@4 version is selected, full blocks are not yet supported.
If you choose umi@3, you can also choose the pro template. Pro is the basic template, which only provides the basic content of the framework operation. Complete contains all blocks, which is not suitable for secondary development as a basic template.
? ð Full or a simple scaffold? (Use arrow keys)
⯠simple
complete
Initialized Git repository:
$ git init myapp
Install dependencies:
$ cd myapp && tyarn
// or
$ cd myapp && npm install
Browsers support
Modern browsers.
Edge | Firefox | Chrome | Safari | Opera |
---|---|---|---|---|
Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
Contributing
Any type of contribution is welcome, here are some examples of how you may contribute to this project:
- Use Ant Design Pro in your daily work.
- Submit issues to report bugs or ask questions.
- Propose pull requests to improve our code.
Top Related Projects
A framework in react community ✨
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
The library for web and native user interfaces.
Deliver web apps with confidence 🚀
The Intuitive Vue Framework.
Laravel is a web application framework with expressive, elegant syntax. We’ve already laid the foundation for your next big idea — freeing you to create without sweating the small things.
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual Copilot