-
Notifications
You must be signed in to change notification settings - Fork 0
Select Primitive PDR #10
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
base: main
Are you sure you want to change the base?
Conversation
…ibility, and examples
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This document is littered with AI slop, I've highlighted a couple of things as comments, but really the amount of inaccuracies about the current state of bento, and it's inner workings makes it impossible to do a proper review.
This document honestly should be rewritten from scratch, using AI as research is fine, but it does not understand how our code works, the goals that we have and that evident as part of this PDR.
Not only that, but if new primitives are being suggested as part of the pdr, e.g. popover, then I fully expect that to be fleshed out as part of this PDR.
You are 100% right @akazemier-godaddy . Went through and verified everything against the actual codebase:
The PDR should now accurately reflect Bento's actual patterns. Let me know if anything still looks off. |
|
I heard there was a discussion on composition expectations for bento. I was expecting an update to what @jsmith9-godaddy described in his first comment. Where is this doc on that? |
I believe @jsmith9-godaddy is working on a composition doc? |
…mplemented primitives
…nd clarify props usage
…led examples and usage
… and detailed usage examples
Per PR feedback, the PDR creation rules should be in a dedicated PR and refined separately from the Select primitive PDR review.
… and overlay rationale
…n and remove redundant details
…eamline key props section
…ove future work suggestions
…tributes, and refine API docs
docs/pdrs/select-primitive.mdx
Outdated
|
|
||
| **Using ListBoxItem with Select:** | ||
|
|
||
| `ListBoxItem` from `@bento/listbox` is the proposed option primitive for Select. In the existing implementation, the `value`, `id`, and `textValue` props are all optional: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe value is accessible through state, but not through the ListBoxItem props.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Am I misunderstanding your question? https://github.com/godaddy/bento/blob/main/packages/listbox/src/listbox-item.tsx#L92
…cture for Select component
…age in documentation
rendered