-
Looking at the designs, we were wondering what type of component was in mind for the "Explore Products" link. Is this part of the Menu as a MenuItem or is it separate link/anchor? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
Hey, @hbatres! Do you mean "Menu" as in part of the navigation list? We have a Paste Menu/MenuItem component, so I just want to make sure we're talking about the same thing. And yep, "Explore Products" is meant to be a link in the same way that the other nav items are, with the same focus/hover/selected states and behavior. |
Beta Was this translation helpful? Give feedback.
-
For this specifically we'd just recommend creating a custom composition using the It can be achieved by doing something like <Box
as="a"
href="/link/to/the/page"
_hover={{
...
}}
_focus={{
...
}}
>
Explore Products
<PlusIcon />
</Box> I'm fairly confident |
Beta Was this translation helpful? Give feedback.
-
Hey @SiTaggart I tried a few different ways to implement the spec we were given for the Sidebar. The following approach works but not sure if this is the best way to go: https://code.hq.twilio.com/twilio/console/pull/29/files#diff-a6d06ff156faa73cda9da98d7d5b5d84 I ended up bringing in parts of the A few things I tried that didn't work:
|
Beta Was this translation helpful? Give feedback.
-
To round this out we're adding a bunch of props to Box including Typography styling. This way you'll be able to create the navigation items using a composition of This can be tracked in this PR #616 |
Beta Was this translation helpful? Give feedback.
To round this out we're adding a bunch of props to Box including Typography styling.
This way you'll be able to create the navigation items using a composition of
Box
Just let us know if there are any props missing from the typings once theBox
updates get merged.This can be tracked in this PR #616