child snippet that require wrapping should be named differently #1488
wighawag
started this conversation in
Feature Requests / Ideas
Replies: 1 comment
-
I've been thinking about something along these lines as well recently. It wouldn't happen until Bits v2 of course, as it would be a breaking change. Something that I have been considering is simply renaming the So something like: <DropdownMenu.Content>
{#snippet child({ wrapperProps, innerProps })
<div {...wrapperProps}>
<div {...innerProps} />
</div>
{/snippet}
</DropdownMenu.Content> Or something along those lines. Definitely open to alt ideas on this as well though! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Ii think it should help if component that require 2 level childdren (floating component) would have a diffently name snippet, like
wrappedChild
instead ofchild
so it can be type-safely infered by the user that it need that 2-level.Beta Was this translation helpful? Give feedback.
All reactions