Replies: 1 comment 3 replies
-
I can see the case for this, but we cannot really place But this could work: (I also like it as it feels a bit clearer about what’s going on) <!-- cotton/dropdown_city.html -->
<c-dropdown :attrs="attrs">
<option value="SF">San Francisco</option>
<option value="NY">New York</option>
</c-dropdown> (If we do this right now, we would get a key value pair like: So the outlay of work looks like:
Optional extra:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This one has "got me" twice now. I'd expect attrs to be passed.
High level I reuse the
<div class="... {{ class }}" {{ attrs }}> {{ slot }} </div>
pattern all over.Beta Was this translation helpful? Give feedback.
All reactions