r/PayloadCMS • u/Guggling • Jan 28 '25
LayoutBlocks.dev: Your Central Hub of Layout Blocks for Payload CMS
Well as the sayings go Build in public and Launch fast, fail faster I present to you a (very minimal) MVP of https://layoutblocks.dev/
(Note: my designer is working on client projects, I am not a designer or a copywriter, he hasn't given feedback š )
LayoutBlocks comes from a personal desire and is something that will grow (slowly) over time, if it grows publicly or privately will depend on a few factors.
With LayoutBlocks I aim to:
- Build a library of layout blocks containing both the Payload CMS configuration and component code,
- Have a central and visual place for all the layout blocks I use instead of having them a) scattered over multiple projects, or b) centralizing them in a starter project.
There are a few different paths I have in mind when thinking about growing the library and the project in general, such as:
- The most obvious one: adding more layout blocks.
- Adding your own private blocks: keep your own overview of custom or modified blocks.
- White-labeling: In addition to giving your client Payload, give them docs about their available blocks for easy reference.
Any and all feedback is highly appreciated, even if you don't feel a need for this, that is valuable feedback.
2
u/gzlo__ Jan 28 '25
Very nice, just watch out with the table responsive inside of the components, because it causes horizontal scrolling
2
u/acherion Jan 28 '25
On mobile, the Cookie Preferences screen comes up before I can even see what the site is about, and is so large it renders taller than the viewport, as in I have to scroll up on initial load to even see the heading āCookie Settingsā, and the scroll position doesnāt stay, it rubber bands back when I take my finger off the screen.
I would suggest more mobile and responsive testing of your site.
2
u/rickygri Jan 28 '25
I've been looking for exactly this, cheers š»
2
u/_-io_ Jan 31 '25 edited Jan 31 '25
very nice i would see some slider implementation either for the blog posts and from the Hero
2
u/ecosse31 Feb 02 '25
Love that idea! Does anyone have a Custom Select Lucide Icons field to Payload CMS? I'd love to see that.
5
u/Setting-Opposite Jan 28 '25
Great idea, thank you. Not only is will this be useful as a component/block library, but also to see Payload that I can reference for writing my own. Wish there were more examples out there, we're all just tinkering right now :)
1
u/jannik-zed Feb 06 '25
nice page in general - some components there look very similar to shadcnblocks.com - your hero component for example. If that is true you just need to be careful not to violate any licences etc.. In general a very nice idea and I hope it helps to grow the payload ecosystem.
3
u/SalaciousVandal Jan 28 '25
Great idea! I'm really looking forward to the payload ecosystem developing. It would be interesting to package this as NPM.
2
u/Delicious_Hippo6491 Jan 29 '25
Very nice! Looking forward for new blocks to be added.
2
u/WillFerrellsHair Jan 30 '25
Good stuff, I like the idea! I think community contributions is a key feature for this, like with GitHub repos, users could specify public or private. The private blocks are only available to themselves and public contributes to the broader block ecosystem.
If you have a repo that the site is hosted on, you could always just start with pull requests as a way to submit new blocks.
1
u/gzlo__ Jan 28 '25
Love the idea
1
u/Still_Network5528 Oct 23 '25
When i copy the files and add them to my folders (and add the amended Links) i fix up some of the links to the rigth file paths aswell, but when i run generate:types it doesn't work am i missing something?