#Block images (imageurl) available anywhere or alternatives?
20 messages ยท Page 1 of 1 (latest)
Help is on the way! To mark it as solved, use the /solve command. In the meantime, here are some existing threads that may help you:
Documentation:
- Custom Features - Do I need a custom feature? - Example: Code Field Block with language picker
- Blocks Field - Blocks Items - Config Options
- Troubleshooting - Dependency mismatches - Confirm whether duplicates exist - If no duplicates are found
- Payload Concepts - Package Structure
- Performance - Other Best Practices - Avoid bundling the entire UI library in your front-end
Community-Help:
Hey! As a Payload employee I am very curious where you found that picture
I can't say that I've seen that mockup before
Haha, it' is on your marketers page i just grabbed a screenshot of it ๐
ahhh
though I'm not a fan of posting things that aren't real, it's a necessary evil
Thought they matched the default fallback image for the blocks, so was hoping a secret icon library maybe existed, haha
But since there were no results anywhere I assumed they were either private or just for the website showcase, thought maybe someone had some good alternatives
if by secret you mean non-existent then yes
haha
those are just mockups we made in Figma
So even if you were able to find some images to use similar to the above, you might end up having to create a custom label component to account for dark/light mode
but we do provide an override for the image if you didn't know
const MediaContentBlock: Block = {
slug: 'mediaContent',
imageURL: '/images/media-content.png',
imageAltText: 'Media content block',
fields: [
// your fields
],
}
it will take an SVG too!
Glad your issue was resolved! :tada: If you want to help make payload better, please give us a :star: on GitHub and review us - It helps us a lot.
Yeah its great to be able to do it so easily! I have been looking for some icons to use for it so that is why when I saw those I was like "wait a minute!"
But it makes sense that they were for the website, I did kind of expect it since there were no mention of them anywhere else ๐
Will probably create some custom icons at some point! Thanks for the response ๐
This thread is already marked as solved.