Final Grid Media Items #11221
la-niina
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here's the code for the component. While there isn’t much to explain structurally, this implementation was somewhat experimental. I prioritized heavy customization to ensure the UI feels unique, as standard table components didn’t meet my design goals.
Finding clear examples or documentation to solve this specific use case proved extremely challenging. As a workaround, I adapted the payload/ui library’s ViewList component by modifying its core logic. There may be a more elegant solution, but until one emerges (or someone shares a better approach), this implementation works reliably.
Prefix Functionality Note
For the prefix behavior: I discovered earlier that adding a prefix field automatically generates consistent file paths across both local storage and S3. This mimics directory-style organization without manual path handling.
limitations, selection isn't implemented for one or multiple selections, search is well defined and it's kinda just experimental. So diy (do it yourself)
. Tailwindcss
. Shadcn
. Typescript
. Payloadcms
. Copy paste [Ctrl & c and the Ctrl & v]
Beta Was this translation helpful? Give feedback.
All reactions