Closed miukimiu closed 6 years ago
@miukimiu hi there, I've updated the code recently and I didn't update the readme so apologies.
A root item is the grid item representing the "title" prop of a ContentGroup. See the screenshot below.
To have a link root item without a content group, you can do this:
<ContentGroup title="Some Link" rootUrl="https://to/somewhere" />
That's the reason why a content group width and height is set to 0 if both are unspecified. The site nav assumes you don't want a content group. Check my blog for a demo of a link without a content group.
I'll update the documentation to reflect this information. Let me know if this works!
Yes, it works! Thank you!! 😄
Hello,
Thank you for this awesome component!
I'm wondering in case we have the following situation:
See example here: https://codesandbox.io/s/rlz4q3x2zp
Shouldn't this situation by default get the
defaultContentWidth
anddefaultContentHeight
?I wanted to open a PR for this but I noticed that you have a comment saying:
So I'm not sure what this is intended to do. What do you mean by root item?
Also is it possible to have a link without a ContentGroup?
Thanks!