-
Notifications
You must be signed in to change notification settings - Fork 15
feat: new <Cards> component #908
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
Conversation
kellyjosephprice
left a comment
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.
🎉 🎉
lib/run.tsx
Outdated
| 'embed-block': Components.Embed, | ||
| 'image-block': Components.Image, | ||
| 'table-of-contents': Components.TableOfContents, | ||
| 'cards-grid': Components.CardsGrid, |
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 think you don't need this line. I actually think the preceding 3 or 4 are unnecessary too, but I can follow up on that. These are the tag names, so CardsGrid should already be getting pulled in here:
Line 35 in c683a80
| ...Components, |
This has me wondering if overwriting, for instance, the img tag is a good idea. This makes it impossible for someone to use them in a custom component without our component:
const CustomImage = (props) => {
return <img {...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.
just linking the related ticket (RM-10076) here for posterity
see https://react.dev/reference/react/Children Co-authored-by: Kelly Joseph Price <[email protected]>
trishaprile
left a comment
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.
merging this in but happy to keep updating this if needed !
This PR was released!🚀 Changes included in v6.75.0-beta.59 |
## Version 7.11.0 ### ✨ New & Improved * add title props to plain ([#1036](#1036)) ([a3b7f50](a3b7f50)) ### 🛠 Fixes & Updates * **deps:** bump debug from 4.3.7 to 4.4.0 ([#1038](#1038)) ([a5a8061](a5a8061)) * **deps:** bump readmeio/rdme from 8 to 9 ([#1037](#1037)) ([3f403de](3f403de)), closes [/github.com/readmeio/rdme/blob/HEAD/#migrating-to-rdme10](https://github.com/readmeio//github.com/readmeio/rdme/blob/HEAD//issues/migrating-to-rdme10) [#1099](#1099) [#1085](#1085) [#1106](#1106) [#1107](#1107) [#1068](#1068) [#962](#962) [#1067](#1067) [github.com/readmeio/rdme/blob/d01d76fe3c2e4a98b4f5c415be03e589fbe3b56e/.releaserc.yml#L30](https://github.com/readmeio/github.com/readmeio/rdme/blob/d01d76fe3c2e4a98b4f5c415be03e589fbe3b56e/.releaserc.yml/issues/L30) [#1067](#1067) [#1072](#1072) [#1100](#1100) [#1078](#1078) [#1042](#1042) [#908](#908) [#901](#901) [#1073](#1073) [#1080](#1080) [#961](#961) [#963](#963) [#993](#993) [github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V20.md#2023-11-22-version-20100](https://github.com/readmeio/github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V20.md/issues/2023-11-22-version-20100) [#965](#965) [#1080](#1080) [#1106](#1106) [#1105](#1105) [#1098](#1098) [#1099](#1099) [#1100](#1100) * dont treat escapes as flow ([#1040](#1040)) ([4692ece](4692ece)) <!--SKIP CI-->

🧰 Changes
<Cards>component