
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
droplinked-designer-configs
Advanced tools
A visual page builder based on React and Puck Editor for creating and managing configurable components.
A visual page builder based on React and Puck Editor for creating and managing configurable components.
src/
├── configured-components/ # Define categories and components here
│ └── [category]/ # Each folder is a category (e.g., design-layout)
│ └── [component]/ # Each folder is a component
│ ├── configs/ # Configs and interfaces
│ └── ... # Component files
├── puck-editor/ # Puck editor core and wrapper
├── App.tsx # Main entry and configuration
└── ...
In the appropriate path (e.g., src/configured-components/design-layout/[component]/configs/interface.ts):
export interface MyComponentProps {
foo: string;
bar: number;
}
In the appropriate path (e.g., src/configured-components/design-layout/[component]/MyComponent.tsx):
import { DropZone } from "../../../puck-editor";
import { MyComponentProps } from "./configs/interface";
const MyComponent: React.FC<MyComponentProps> = ({ foo, bar }) => (
<div>{foo} - {bar}</div>
);
export default MyComponent;
In src/configured-components/design-layout/[component]/configs/[component]Config.tsx:
import MyComponent from "../MyComponent";
import MyComponentVisualExample from "../MyComponentVisualExample";
import { Config } from "../../../puck-editor";
export const myComponentConfig: Config["components"][string] = {
label: "My Component",
labelIcon: <span>🌟</span>,
visualExample: <MyComponentVisualExample />,
fields: {
foo: { type: "text", label: "Foo" },
bar: { type: "number", label: "Bar" },
},
defaultProps: {
foo: "Hello",
bar: 1,
},
render: (props) => <MyComponent {...props} />,
};
In src/configured-components/design-layout/index.tsx:
import { myComponentConfig } from "./[component]/configs/[component]Config";
export const designLayoutComponents = {
// ...existing code...
myComponent: myComponentConfig,
};
In src/configured-components/design-layout/categoryConfig.ts:
export const designLayoutCategory: Config["categories"] = {
designLayout: {
// ...existing code...
components: [
// ...existing code...
"myComponent"
],
},
};
visualExample for each component so it can be displayed in the UI.DropZone to create droppable areas.npm install
npm run dev
Default address: http://localhost:5173
For further guidance, refer to the project documentation or code comments.
FAQs
A visual page builder based on React and Puck Editor for creating and managing configurable components.
The npm package droplinked-designer-configs receives a total of 0 weekly downloads. As such, droplinked-designer-configs popularity was classified as not popular.
We found that droplinked-designer-configs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.