Closed tulup-conner closed 2 years ago
I didn't even notice this initially, but it looks like it also incorrectly resolves the name of Button
to ButtonComponent
.
Yep. All components sub-components must have the property displayName
attached.
Here is a good example: https://github.com/themesberg/flowbite-react/blob/d056becd2cd0fde8fd4cb5ecb3b6bcadc10d7b73/src/components/Navbar/index.tsx#L44
I can confirm adding the displayName totally fixes this- so I think we just need to add a displayName to existing components and this should be resolved. I can take that on.
Describe the bug Compound components have their
.
separator removed by the syntax highlighter used for example pages.To be clear, it is still valid to import
ButtonGroup
directly, but the examples pages useButton.Group
.To Reproduce Steps to reproduce the behavior:
Expected behavior The code should look like:
Screenshots n/a
Desktop (please complete the following information): n/a
Smartphone (please complete the following information): n/a
Additional context n/a