Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default component for DropZone #862

Open
yoshi95 opened this issue Jan 30, 2025 · 1 comment
Open

default component for DropZone #862

yoshi95 opened this issue Jan 30, 2025 · 1 comment

Comments

@yoshi95
Copy link

yoshi95 commented Jan 30, 2025

Hi, I have a need to programmatically populate many DropZones (like 10+) for my CMS integration. But I dont want the user to populate all of the DropZone manually.

I am thinking of some way to provide a default component like

<DropZone name="banner" defaultComponent={'ImageBanner'} />
// or
<DropZone name="banner" defaultComponent={() => <h2>Heading</h2>} />

Wondering if this is possible do this with as plugin, or even extend the current DropZone component.
Maybe it is a feature request, love to open a PR with some guidance as well.

Thank you

@chrisvxd
Copy link
Member

Hey @yoshi95! This won't be possible until the slot API as proposed in #255. Will keep this open for tracking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants