Skip to content

feat: add useSlot hook to enable control of slot element#1546

Draft
chrisvxd wants to merge 2 commits into
mainfrom
use-slot-function
Draft

feat: add useSlot hook to enable control of slot element#1546
chrisvxd wants to merge 2 commits into
mainfrom
use-slot-function

Conversation

@chrisvxd

@chrisvxd chrisvxd commented Jan 27, 2026

Copy link
Copy Markdown
Contributor

Expose useSlot function to enable fine-tuned control of slot rendering.

Work-in-progress and needs integrating with slot field API somehow.

Usage

const [ref, children] = useSlot({ zone: "root:default-zone" })

return <ul ref={ref}>{children}</ul>

@vercel

vercel Bot commented Jan 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
puck-demo Ready Ready Preview, Comment May 19, 2026 2:47pm
puck-docs Ready Ready Preview, Comment May 19, 2026 2:47pm

Request Review

@chrisvxd

Copy link
Copy Markdown
Contributor Author

@copilot resolve the merge conflicts in this pull request

Co-authored-by: chrisvxd <985961+chrisvxd@users.noreply.github.com>

Copilot AI commented May 19, 2026

Copy link
Copy Markdown

@copilot resolve the merge conflicts in this pull request

Resolved and pushed in commit 3d541a73. The branch now includes a merge commit from origin/main with conflicts fixed in packages/core/components/DropZone/index.tsx.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants