-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Feature/details component #237
Conversation
Ibabalola
commented
Oct 18, 2021
- created Details Component
- added Demo of Details Component
- added seperate section for 0.3 release component
- added storybook story for unstyled, styled, live and documentation
- added 100% test coverage for Range component
- renamed test.ts file name to test.tsx file
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.
looks good to me
example/components/DetailsDemo.tsx
Outdated
export const DetailsDemo = () => ( | ||
<> | ||
<h1>Simple Details Component</h1> | ||
<Details details="detail information to shown" summary="summary headline" /> |
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.
it's slightly different from what we describe in the ticket. the main question I've is how I can put something more complex in the summary
? If my hidden content is for example a table this component can't be used anymore
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.
Understood, updated to address the concern @daniele-zurico
<Details summary={ This can only be a string }> YOUR COMPONENT </Details>