-
Notifications
You must be signed in to change notification settings - Fork 89
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
Component documentation feedback #2265
Comments
|
Note the displayName issue (number 7) seems to be due to the components using arrow functions rather than named functions, so we should create a ticket to go though and update all components to use named functions. Updating FlowLayout to the following fixed that component for me: export const FlowLayout: FlowLayoutComponent = forwardRef(function FlowLayout<
T extends ElementType = "div"
>({ children, ...rest }: FlowLayoutProps<T>, ref?: PolymorphicRef<T>) {
return (
<FlexLayout direction="row" ref={ref} wrap {...rest}>
{children}
</FlexLayout>
);
}); from export const FlowLayout: FlowLayoutComponent = forwardRef(
<T extends ElementType = "div">(
{ children, ...rest }: FlowLayoutProps<T>,
ref?: PolymorphicRef<T>
) => {
return (
<FlexLayout direction="row" ref={ref} wrap {...rest}>
{children}
</FlexLayout>
);
}
); |
I believe this'll be fixed when we replace the current vertical nav component (which comes from Mosaic) with our own, based on the Not sure there's much point trying to "fix" this in the Mosaic component now, given that we're due to replace it anyway. |
FYI, I've opened an issue to note some additional functionality for the |
A place to capture feedback on the docs template or the site page itself. Where are the challenges? Is there anything missing? Is it difficult to find a place for content you want to add? Etc...
The text was updated successfully, but these errors were encountered: