-
Notifications
You must be signed in to change notification settings - Fork 64
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
PD-549: Refactor Card component to be a styled wrapper for Box #306
Conversation
| `as` | `HTML Tag` or `React Element` | Determines the root element. For example, `Link` or `a` tags can be supplied to replace `div` from being the DOM element that wraps the component. | `section` | | ||
| `className` | `string` | Adds a className to the class attribute | | | ||
| `children` | `node` | The children of the rendered inside of the `<Card/>` component. | | | ||
Card is a styled wrapper for the Box component. Any properties you would pass to Box can also be passed to Card. |
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.
Not completely sure if this is the best wording, but I tried
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.
👍
Size Change: +11.9 kB (2%) Total Size: 474 kB
ℹ️ View Unchanged
|
Don't forget to fix the test suite @dominoweir |
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.
LGTM, great work!
* initial commit * make Box root element of Card * thank u Brooke * fix Box exports * update readme and rename prop * yarn changeset * fix breaking tests
✍️ Proposed changes
Refactor Card component to be a styled wrapper for Box
🎟 Jira ticket: PD-549(https://jira.mongodb.org/browse/PD-549)
🛠 Types of changes
✅ Checklist
yarn changeset
and documented my changes💬 Further comments