Conversation
|
Build successful! 🎉 |
|
Build successful! 🎉 |
| - Use `DropZone` for drag-and-drop file or object upload targets. | ||
| - Use `Form` to provide layout, submission, and validation structure for grouped fields. | ||
|
|
||
| ### Last-resort custom components |
There was a problem hiding this comment.
heh, this looks like my prompts where the result came out the best in terms of the actual code generated, should help a lot to have this baked in by default
i like the decision tree stuff as well, it mirrors some of the prompt stuff i was trying to do as well, though way more involved and thought through :)
| @@ -0,0 +1,153 @@ | |||
| ## Styling | |||
|
|
|||
| Use React Spectrum S2 components and the S2 `style` macro as the default styling approach. | |||
There was a problem hiding this comment.
one of the rules I had to double down on and keep reminding the agent was, do not concatenate the classnames returned by a style macro call, use the dynamic and nested syntax if runtime decisions need to be in the style
i never got into mergeStyles because nothing i was doing needed it, but that could also be mentioned potentially
There was a problem hiding this comment.
I'm not sure how to also include that things like ...focusRing inside a style macro call require that the style macro be called with renderProps usually, but that was something it choked on a bunch
There was a problem hiding this comment.
These are great ideas. I'll make a note to add these as follow-up. I can probably just include them in #9886
| } | ||
| ``` | ||
|
|
||
| Boolean conditions starting with `is` or `allows` can be used directly without nesting: |
There was a problem hiding this comment.
wonder how well this will work given the token size stuff and it not being able to count r's in strawberry
There was a problem hiding this comment.
That's a good question. Just gave it a try and it seems to work:
User: What are the render props on @packages/react-aria-components/src/Button.tsx that start with
isorallows
Agent: In
Button.tsx, render props come fromButtonRenderProps, which is whatclassName/childrenreceive viaRenderProps<ButtonRenderProps, 'button'>.Starting with
is
isHoveredisPressedisFocusedisFocusVisibleisDisabledisPendingStarting with
allows
- None —
ButtonRenderPropsdoes not include anyallows*fields.
...
This PR does the following:
SKILL.mdfor common mistakes observed when agents use the current skill. It is important that these are surfaced up toSKILL.mdinstead of being only in the reference files.✅ Pull Request Checklist:
📝 Test Instructions:
Install the skill:
and invoke it when upgrading your project.
🧢 Your Project: