measuredco/puck
Fork: 322 Star: 5276 (更新于 2024-11-21 06:11:55)
license: MIT
Language: TypeScript .
The visual editor for React
最后发布版本: v0.16.0 ( 2024-09-17 17:57:25)
Puck
The visual editor for React.
Demo
Visit https://demo.puckeditor.com/edit to try the demo.
Documentation
Visit https://puckeditor.com to view the full documentation.
Quick start
Install the package:
npm i @measured/puck --save # or npx create-puck-app my-app
Render the editor:
// Editor.jsx
import { Puck } from "@measured/puck";
import "@measured/puck/puck.css";
// Create Puck component config
const config = {
components: {
HeadingBlock: {
fields: {
children: {
type: "text",
},
},
render: ({ children }) => {
return <h1>{children}</h1>;
},
},
},
};
// Describe the initial data
const initialData = {};
// Save the data to your database
const save = (data) => {};
// Render Puck editor
export function Editor() {
return <Puck config={config} data={initialData} onPublish={save} />;
}
Render the page:
// Page.jsx
import { Render } from "@measured/puck";
import "@measured/puck/puck.css";
export function Page() {
return <Render config={config} data={data} />;
}
Recipes
Use create-puck-app
to quickly spin up a a pre-configured app based on our provided recipes:
npx create-puck-app my-app
Available recipes include:
- next: Next.js 13 app example, using App Router and static page generation
- remix: Remix Run v2 app example, using dynamic routes at root-level
Community
- Discord server for discussions
- awesome-puck community repo for plugins, custom fields & more
Hire the Puck team
Puck is developed and maintained by Measured, a small group of industry veterans with decades of experience helping companies solve hard UI problems. We offer consultancy and development services for scale-ups, SMEs and enterprises.
If you need support integrating Puck or creating a beautiful component library, please reach out via the Measured website.
License
MIT © Measured Corporation Ltd
最近版本更新:(数据更新于 2024-10-06 12:45:57)
2024-09-17 17:57:25 v0.16.0
2024-05-31 20:51:39 v0.15.0
2024-04-18 02:17:58 v0.14.2
2024-04-02 00:39:07 v0.14.1
2024-03-29 03:44:16 v0.14.0
2023-12-23 20:29:51 v0.13.1
2023-12-20 17:43:25 v0.13.0
2023-11-23 19:41:01 v0.12.0
2023-11-13 06:17:09 v0.11.3
2023-11-12 00:28:03 v0.11.2
measuredco/puck同语言 TypeScript最近更新仓库
2024-11-22 01:36:46 twentyhq/twenty
2024-11-21 16:58:07 labring/FastGPT
2024-11-21 16:14:54 RSSNext/Follow
2024-11-21 14:55:41 continuedev/continue
2024-11-21 00:40:00 immich-app/immich
2024-11-20 23:34:25 lobehub/lobe-chat